summaryrefslogtreecommitdiffstats
path: root/parallel-libs/streamexecutor/lib/PlatformManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parallel-libs/streamexecutor/lib/PlatformManager.cpp')
-rw-r--r--parallel-libs/streamexecutor/lib/PlatformManager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/parallel-libs/streamexecutor/lib/PlatformManager.cpp b/parallel-libs/streamexecutor/lib/PlatformManager.cpp
index 9cae5b1ea4b..7304cca755c 100644
--- a/parallel-libs/streamexecutor/lib/PlatformManager.cpp
+++ b/parallel-libs/streamexecutor/lib/PlatformManager.cpp
@@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//
#include "streamexecutor/PlatformManager.h"
+#include "streamexecutor/platforms/host/HostPlatform.h"
namespace streamexecutor {
@@ -23,6 +24,8 @@ PlatformManager::PlatformManager() {
// 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<host::HostPlatform>());
}
Expected<Platform *> PlatformManager::getPlatformByName(llvm::StringRef Name) {
OpenPOWER on IntegriCloud