summaryrefslogtreecommitdiff
path: root/parallel-libs
diff options
context:
space:
mode:
authorJason Henline <jhen@google.com>2016-09-15 20:26:28 +0000
committerJason Henline <jhen@google.com>2016-09-15 20:26:28 +0000
commitcc8a0feef07412bd9537725bad2024e2d297dcd2 (patch)
tree38e4a3a5f7e1ee44ad267863cd2e0a6b19a3a4ea /parallel-libs
parentd1a0048274a39fdf4f212509914c62e1272976e1 (diff)
[SE] Fix config bug with CUDA tests
Summary: It turns out CMake errors out if a processed directory contains source files that are not used. This was causing an error with the CUDATest.cpp file when configuring StreamExecutor with the CUDA platform disabled. Moving CUDATest.cpp to its own directory fixes this problem. Reviewers: jlebar, jprice Subscribers: beanz, mgorny, jlebar, parallel_libs-commits Differential Revision: https://reviews.llvm.org/D24618
Diffstat (limited to 'parallel-libs')
-rw-r--r--parallel-libs/streamexecutor/unittests/CoreTests/CMakeLists.txt2
-rw-r--r--parallel-libs/streamexecutor/unittests/CoreTests/cuda/CUDATest.cpp (renamed from parallel-libs/streamexecutor/unittests/CoreTests/CUDATest.cpp)0
2 files changed, 1 insertions, 1 deletions
diff --git a/parallel-libs/streamexecutor/unittests/CoreTests/CMakeLists.txt b/parallel-libs/streamexecutor/unittests/CoreTests/CMakeLists.txt
index 5a66a66f228..ffc33713137 100644
--- a/parallel-libs/streamexecutor/unittests/CoreTests/CMakeLists.txt
+++ b/parallel-libs/streamexecutor/unittests/CoreTests/CMakeLists.txt
@@ -1,5 +1,5 @@
if(STREAM_EXECUTOR_ENABLE_CUDA_PLATFORM)
- set(CUDA_TEST_SOURCES CUDATest.cpp)
+ set(CUDA_TEST_SOURCES cuda/CUDATest.cpp)
endif()
add_se_unittest(
diff --git a/parallel-libs/streamexecutor/unittests/CoreTests/CUDATest.cpp b/parallel-libs/streamexecutor/unittests/CoreTests/cuda/CUDATest.cpp
index caf14368082..caf14368082 100644
--- a/parallel-libs/streamexecutor/unittests/CoreTests/CUDATest.cpp
+++ b/parallel-libs/streamexecutor/unittests/CoreTests/cuda/CUDATest.cpp