diff options
author | Eugene Zhulenev <ezhulenev@google.com> | 2018-07-20 17:37:20 -0700 |
---|---|---|
committer | Eugene Zhulenev <ezhulenev@google.com> | 2018-07-20 17:37:20 -0700 |
commit | 34a75c3c5cec4e2bfe5c68164f8c3372f6ae5ecb (patch) | |
tree | e9c3fb5a68f5d890a7523ea3b0094176c752b757 /unsupported/test/CMakeLists.txt | |
parent | 2c2de9da7de97fc31e1ab73a254a70a28fa023f0 (diff) |
Initial support of TensorBlock
Diffstat (limited to 'unsupported/test/CMakeLists.txt')
-rw-r--r-- | unsupported/test/CMakeLists.txt | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/unsupported/test/CMakeLists.txt b/unsupported/test/CMakeLists.txt index 55b86a32f..fa19b2159 100644 --- a/unsupported/test/CMakeLists.txt +++ b/unsupported/test/CMakeLists.txt @@ -130,6 +130,7 @@ if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") ei_add_test(cxx11_tensor_dimension) ei_add_test(cxx11_tensor_map) ei_add_test(cxx11_tensor_assign) +ei_add_test(cxx11_tensor_block_access) ei_add_test(cxx11_tensor_comparisons) ei_add_test(cxx11_tensor_forced_eval) ei_add_test(cxx11_tensor_math) @@ -291,14 +292,14 @@ if(CUDA_FOUND AND EIGEN_TEST_CUDA) unset(EIGEN_ADD_TEST_FILENAME_EXTENSION) endif() -# Add HIP specific tests +# Add HIP specific tests if (EIGEN_TEST_HIP) set(HIP_PATH "/opt/rocm/hip" CACHE STRING "Path to the HIP installation.") if (EXISTS ${HIP_PATH}) - - list(APPEND CMAKE_MODULE_PATH ${HIP_PATH}/cmake) + + list(APPEND CMAKE_MODULE_PATH ${HIP_PATH}/cmake) find_package(HIP REQUIRED) if (HIP_FOUND) @@ -328,22 +329,22 @@ if (EIGEN_TEST_HIP) ei_add_test(cxx11_tensor_contract_gpu) ei_add_test(cxx11_tensor_of_float16_gpu) ei_add_test(cxx11_tensor_random_gpu) - + unset(EIGEN_ADD_TEST_FILENAME_EXTENSION) - + elseif (${HIP_PLATFORM} STREQUAL "nvcc") message(FATAL_ERROR "HIP_PLATFORM = nvcc is not supported within Eigen") else () message(FATAL_ERROR "Unknown HIP_PLATFORM = ${HIP_PLATFORM}") endif() - + endif(HIP_FOUND) else () message(FATAL_ERROR "EIGEN_TEST_HIP is ON, but the specified HIP_PATH (${HIP_PATH}) does not exist") - + endif() - + endif(EIGEN_TEST_HIP) |