diff options
| author | Jason Henline <jhen@google.com> | 2016-09-13 19:28:02 +0000 |
|---|---|---|
| committer | Jason Henline <jhen@google.com> | 2016-09-13 19:28:02 +0000 |
| commit | 3088696499c2d883d8573eb384cd5d2455a3c6c1 (patch) | |
| tree | f1313406d5c01531ddb8c733bbd467b3b99af10e /parallel-libs/streamexecutor/lib | |
| parent | 1af1414d4d268b5b8580a56101be3e434f8c9291 (diff) | |
| download | bcm5719-llvm-3088696499c2d883d8573eb384cd5d2455a3c6c1.tar.gz bcm5719-llvm-3088696499c2d883d8573eb384cd5d2455a3c6c1.zip | |
[SE] Host platform implementation
Summary:
This implementation does not currently support multiple concurrent streams, and
it won't allow kernels to be launched with grids larger than one block or
blocks larger than one thread. These limitations could be removed in the future
by launching new threads on the host, but that is not done in this
implementation.
Reviewers: jlebar
Subscribers: beanz, mgorny, jprice, parallel_libs-commits
Differential Revision: https://reviews.llvm.org/D24473
llvm-svn: 281377
Diffstat (limited to 'parallel-libs/streamexecutor/lib')
| -rw-r--r-- | parallel-libs/streamexecutor/lib/PlatformManager.cpp | 3 |
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) { |

