From a91dc70b18dd129761b66c1b76cbe64f54cd2eb1 Mon Sep 17 00:00:00 2001 From: Jason Henline Date: Tue, 16 Aug 2016 18:18:32 +0000 Subject: [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 --- parallel-libs/streamexecutor/lib/unittests/StreamTest.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'parallel-libs/streamexecutor/lib/unittests/StreamTest.cpp') 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 +#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> createStream() override { @@ -70,8 +70,7 @@ public: StreamTest() : DeviceA(se::GlobalDeviceMemory::makeFromElementCount(HostA, 10)), DeviceB(se::GlobalDeviceMemory::makeFromElementCount(HostB, 10)), - Stream(llvm::make_unique(&PlatformExecutor)) { - } + Stream(llvm::make_unique(&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; }; -- cgit v1.2.3