diff options
author | Brad King <brad.king@kitware.com> | 2023-08-10 20:05:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-09-21 19:34:37 (GMT) |
commit | 90e23f40ee27c0990b30b3640731e89539cb3990 (patch) | |
tree | f0648e206b48d1e3e21d5036c563a2858c41c9d8 /Tests/HIP | |
parent | 9ebdf3281f431589af88e94470ef3274f2c6e753 (diff) | |
download | CMake-90e23f40ee27c0990b30b3640731e89539cb3990.zip CMake-90e23f40ee27c0990b30b3640731e89539cb3990.tar.gz CMake-90e23f40ee27c0990b30b3640731e89539cb3990.tar.bz2 |
Tests/HIP/WithDefs: Clean up test case
Fix code copied from equivalent CUDA test.
Drop `CMAKE_HIP_ARCHITECTURES=OFF`. That is already covered by
a dedicated `HIP.ArchitectureOff` test.
Diffstat (limited to 'Tests/HIP')
-rw-r--r-- | Tests/HIP/WithDefs/CMakeLists.txt | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Tests/HIP/WithDefs/CMakeLists.txt b/Tests/HIP/WithDefs/CMakeLists.txt index 270f957..5602111 100644 --- a/Tests/HIP/WithDefs/CMakeLists.txt +++ b/Tests/HIP/WithDefs/CMakeLists.txt @@ -2,12 +2,11 @@ cmake_minimum_required(VERSION 3.18) project (WithDefs HIP) -set(CMAKE_HIP_ARCHITECTURES OFF) set(release_compile_defs DEFREL) #Goal for this example: -#build a executable that needs to be passed a complex define through add_definitions -#this verifies we can pass C++ style attributes to hipcc +#Build an executable that needs to be passed a complex define through add_definitions. +#Verify we can pass C++ style attributes to the HIP compiler. add_definitions("-DPACKED_DEFINE=[[gnu::packed]]") add_executable(HIPOnlyWithDefs main.hip.cpp) @@ -17,9 +16,8 @@ target_compile_features(HIPOnlyWithDefs PRIVATE hip_std_17) target_compile_options(HIPOnlyWithDefs PRIVATE - --offload-arch=gfx900 -DFLAG_COMPILE_LANG_$<COMPILE_LANGUAGE> - $<$<HIP_COMPILER_ID:Clang>:-DFLAG_LANG_IS_HIP=$<COMPILE_LANGUAGE:HIP>> # Host-only defines are possible only on NVCC. + -DFLAG_LANG_IS_HIP=$<COMPILE_LANGUAGE:HIP> ) target_compile_definitions(HIPOnlyWithDefs |