From b3f709e10f37225ae65c1d48c4623f6abc2cac1e Mon Sep 17 00:00:00 2001 From: Jason Henline Date: Tue, 25 Oct 2016 20:38:08 +0000 Subject: [SE] Remove StreamExecutor Summary: The project has been renamed to Acxxel, so this old directory needs to be deleted. Reviewers: jlebar, jprice Subscribers: beanz, mgorny, parallel_libs-commits, modocache Differential Revision: https://reviews.llvm.org/D25964 llvm-svn: 285115 --- .../streamexecutor/lib/PlatformManager.cpp | 49 ---------------------- 1 file changed, 49 deletions(-) delete mode 100644 parallel-libs/streamexecutor/lib/PlatformManager.cpp (limited to 'parallel-libs/streamexecutor/lib/PlatformManager.cpp') diff --git a/parallel-libs/streamexecutor/lib/PlatformManager.cpp b/parallel-libs/streamexecutor/lib/PlatformManager.cpp deleted file mode 100644 index 8f44befbd71..00000000000 --- a/parallel-libs/streamexecutor/lib/PlatformManager.cpp +++ /dev/null @@ -1,49 +0,0 @@ -//===-- PlatformManager.cpp - PlatformManager implementation --------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -/// -/// \file -/// Implementation of PlatformManager class internals. -/// -//===----------------------------------------------------------------------===// - -#include "streamexecutor/PlatformManager.h" - -#include "streamexecutor/PlatformOptions.h" -#include "streamexecutor/platforms/host/HostPlatform.h" - -#ifdef STREAM_EXECUTOR_ENABLE_CUDA_PLATFORM -#include "streamexecutor/platforms/cuda/CUDAPlatform.h" -#endif - -namespace streamexecutor { - -PlatformManager::PlatformManager() { - // TODO(jhen): Register known platforms by name. - // We have a couple of options here: - // * Use build-system flags to set preprocessor macros that select the - // appropriate code to include here. - // * Use static initialization tricks to have platform libraries register - // themselves when they are loaded. - - PlatformsByName.emplace("host", llvm::make_unique()); - -#ifdef STREAM_EXECUTOR_ENABLE_CUDA_PLATFORM - PlatformsByName.emplace("cuda", llvm::make_unique()); -#endif -} - -Expected PlatformManager::getPlatformByName(llvm::StringRef Name) { - static PlatformManager Instance; - auto Iterator = Instance.PlatformsByName.find(Name.lower()); - if (Iterator != Instance.PlatformsByName.end()) - return Iterator->second.get(); - return make_error("no available platform with name " + Name); -} - -} // namespace streamexecutor -- cgit v1.2.3