From 8532e285286f3d7834bd002a878552192cefaa41 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 10 Apr 2025 14:21:10 -0400 Subject: [PATCH] Tests/HIP: Drop unnecessary hard-coded compute architectures In commit 8514ee9b31 (HIP: analyze output of `hipcc` to determine default GPU architecture, 2021-05-27, v3.21.0-rc1~66^2) we dropped these from most tests, but missed `HIP.TryCompile`. Since commit 735f41fc2d (HIP: Use 'rocm_agent_enumerator' to determine CMAKE_HIP_ARCHITECTURES, 2021-09-15, v3.21.3~1^2~3) we automatically select architectures anyway. --- Tests/HIP/TryCompile/CMakeLists.txt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Tests/HIP/TryCompile/CMakeLists.txt b/Tests/HIP/TryCompile/CMakeLists.txt index 1022a58227..f3bb3bf99d 100644 --- a/Tests/HIP/TryCompile/CMakeLists.txt +++ b/Tests/HIP/TryCompile/CMakeLists.txt @@ -5,12 +5,6 @@ project (TryCompile HIP) # Verify try_compile with HIP language works set(CMAKE_HIP_STANDARD 14) -if(CMAKE_HIP_PLATFORM STREQUAL "amd") - set(CMAKE_HIP_ARCHITECTURES gfx803 gfx900) -elseif(CMAKE_HIP_PLATFORM STREQUAL "nvidia") - set(CMAKE_HIP_ARCHITECTURES 52) -endif() - set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) try_compile(result "${CMAKE_CURRENT_BINARY_DIR}" SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/device_function.hip"