diff options
author | Deven Desai <deven.desai.amd@gmail.com> | 2020-10-29 17:00:04 +0000 |
---|---|---|
committer | Deven Desai <deven.desai.amd@gmail.com> | 2020-10-29 18:06:31 +0000 |
commit | 9d11e2c03e50c59e880db96f0f871c49fe3aef3e (patch) | |
tree | 3f75e8c4cd297c845dc5dc67bdf6c6092d6cc141 /unsupported/test/CMakeLists.txt | |
parent | 39a038f2e4aa2ebd1e55957d60d3151bd153bd47 (diff) |
CMakefile update for ROCm 4.0
Starting with ROCm 4.0, the `hipconfig --platform` command will return `amd` (prior return value was `hcc`). Updating the CMakeLists.txt files in the test dirs to account for this change.
Diffstat (limited to 'unsupported/test/CMakeLists.txt')
-rw-r--r-- | unsupported/test/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/test/CMakeLists.txt b/unsupported/test/CMakeLists.txt index 298db04ea..4cb962ad6 100644 --- a/unsupported/test/CMakeLists.txt +++ b/unsupported/test/CMakeLists.txt @@ -381,7 +381,7 @@ if (EIGEN_TEST_HIP) execute_process(COMMAND ${HIP_PATH}/bin/hipconfig --platform OUTPUT_VARIABLE HIP_PLATFORM) - if (${HIP_PLATFORM} STREQUAL "hcc") + if ((${HIP_PLATFORM} STREQUAL "hcc") OR (${HIP_PLATFORM} STREQUAL "amd")) include_directories(${CMAKE_CURRENT_BINARY_DIR}) include_directories(${HIP_PATH}/include) @@ -407,7 +407,7 @@ if (EIGEN_TEST_HIP) unset(EIGEN_ADD_TEST_FILENAME_EXTENSION) - elseif (${HIP_PLATFORM} STREQUAL "nvcc") + elseif ((${HIP_PLATFORM} STREQUAL "nvcc") OR (${HIP_PLATFORM} STREQUAL "nvidia")) message(FATAL_ERROR "HIP_PLATFORM = nvcc is not supported within Eigen") else () message(FATAL_ERROR "Unknown HIP_PLATFORM = ${HIP_PLATFORM}") |