diff options
| author | Jason Henline <jhen@google.com> | 2016-08-16 17:58:31 +0000 |
|---|---|---|
| committer | Jason Henline <jhen@google.com> | 2016-08-16 17:58:31 +0000 |
| commit | 68b97c7dc94b78a1752b67106464f48819cc341e (patch) | |
| tree | 44f1c8fd402d9069cdc86dc5af480a3210690beb /parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp | |
| parent | a3f4f0828bb791d2b7b396ccc61a95f4b0e76ba6 (diff) | |
| download | bcm5719-llvm-68b97c7dc94b78a1752b67106464f48819cc341e.tar.gz bcm5719-llvm-68b97c7dc94b78a1752b67106464f48819cc341e.zip | |
[StreamExecutor] Add basic Stream operations
Summary: Add the Stream class and a few of the operations it supports.
Reviewers: jlebar, tra
Subscribers: jprice, parallel_libs-commits
Differential Revision: https://reviews.llvm.org/D23333
llvm-svn: 278829
Diffstat (limited to 'parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp')
| -rw-r--r-- | parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp b/parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp index addcb83ec64..9974e994023 100644 --- a/parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp +++ b/parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp @@ -14,9 +14,9 @@ #include <cassert> -#include "streamexecutor/Interfaces.h" #include "streamexecutor/Kernel.h" #include "streamexecutor/KernelSpec.h" +#include "streamexecutor/PlatformInterfaces.h" #include "streamexecutor/StreamExecutor.h" #include "llvm/ADT/STLExtras.h" @@ -42,7 +42,8 @@ namespace se = ::streamexecutor; class MockStreamExecutor : public se::StreamExecutor { public: MockStreamExecutor() - : Unique(llvm::make_unique<se::KernelInterface>()), Raw(Unique.get()) {} + : se::StreamExecutor(nullptr), + Unique(llvm::make_unique<se::KernelInterface>()), Raw(Unique.get()) {} // Moves the unique pointer into the returned se::Expected instance. // |

