mirror of
https://github.com/Kitware/CMake.git
synced 2025-05-09 06:42:18 +08:00
Merge topic 'hip-test-archs'
8532e28528 Tests/HIP: Drop unnecessary hard-coded compute architectures Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !10637
This commit is contained in:
commit
562be7f05c
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user