diff options
| author | Jason Henline <jhen@google.com> | 2016-08-16 18:18:32 +0000 | 
|---|---|---|
| committer | Jason Henline <jhen@google.com> | 2016-08-16 18:18:32 +0000 | 
| commit | a91dc70b18dd129761b66c1b76cbe64f54cd2eb1 (patch) | |
| tree | dcf6d82e7fe839a990e720b231193ee7fc71066f /parallel-libs/streamexecutor/lib/unittests/StreamTest.cpp | |
| parent | 1d01a793042d3d0566b009915529ab4559ea72a9 (diff) | |
| download | bcm5719-llvm-a91dc70b18dd129761b66c1b76cbe64f54cd2eb1.tar.gz bcm5719-llvm-a91dc70b18dd129761b66c1b76cbe64f54cd2eb1.zip | |
[StreamExecutor] Rename StreamExecutor to Executor
Summary: No functional changes just renaming this class for better readability.
Reviewers: jlebar
Subscribers: jprice, parallel_libs-commits
Differential Revision: https://reviews.llvm.org/D23574
llvm-svn: 278833
Diffstat (limited to 'parallel-libs/streamexecutor/lib/unittests/StreamTest.cpp')
| -rw-r--r-- | parallel-libs/streamexecutor/lib/unittests/StreamTest.cpp | 15 | 
1 files changed, 7 insertions, 8 deletions
| diff --git a/parallel-libs/streamexecutor/lib/unittests/StreamTest.cpp b/parallel-libs/streamexecutor/lib/unittests/StreamTest.cpp index 3d7128720cf..6ef21833108 100644 --- a/parallel-libs/streamexecutor/lib/unittests/StreamTest.cpp +++ b/parallel-libs/streamexecutor/lib/unittests/StreamTest.cpp @@ -14,11 +14,11 @@  #include <cstring> +#include "streamexecutor/Executor.h"  #include "streamexecutor/Kernel.h"  #include "streamexecutor/KernelSpec.h"  #include "streamexecutor/PlatformInterfaces.h"  #include "streamexecutor/Stream.h" -#include "streamexecutor/StreamExecutor.h"  #include "gtest/gtest.h" @@ -26,14 +26,14 @@ namespace {  namespace se = ::streamexecutor; -/// Mock PlatformStreamExecutor that performs asynchronous memcpy operations by +/// Mock PlatformExecutor that performs asynchronous memcpy operations by  /// ignoring the stream argument and calling std::memcpy on device memory  /// handles. -class MockPlatformStreamExecutor : public se::PlatformStreamExecutor { +class MockPlatformExecutor : public se::PlatformExecutor {  public: -  ~MockPlatformStreamExecutor() override {} +  ~MockPlatformExecutor() override {} -  std::string getName() const override { return "MockPlatformStreamExecutor"; } +  std::string getName() const override { return "MockPlatformExecutor"; }    se::Expected<std::unique_ptr<se::PlatformStreamHandle>>    createStream() override { @@ -70,8 +70,7 @@ public:    StreamTest()        : DeviceA(se::GlobalDeviceMemory<int>::makeFromElementCount(HostA, 10)),          DeviceB(se::GlobalDeviceMemory<int>::makeFromElementCount(HostB, 10)), -        Stream(llvm::make_unique<se::PlatformStreamHandle>(&PlatformExecutor)) { -  } +        Stream(llvm::make_unique<se::PlatformStreamHandle>(&PExecutor)) {}  protected:    // Device memory is backed by host arrays. @@ -83,7 +82,7 @@ protected:    // Host memory to be used as actual host memory.    int Host[10]; -  MockPlatformStreamExecutor PlatformExecutor; +  MockPlatformExecutor PExecutor;    se::Stream Stream;  }; | 

