From 9d11e2c03e50c59e880db96f0f871c49fe3aef3e Mon Sep 17 00:00:00 2001 From: Deven Desai Date: Thu, 29 Oct 2020 17:00:04 +0000 Subject: 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. --- unsupported/test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unsupported/test') 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}") -- cgit v1.2.3