diff options
author | Zack Galbreath <zack.galbreath@kitware.com> | 2021-05-27 18:03:51 +0000 |
---|---|---|
committer | Zack Galbreath <zack.galbreath@kitware.com> | 2021-06-07 19:25:34 +0000 |
commit | 8514ee9b315b4ad02eed0e3cf11d8579f307fac0 (patch) | |
tree | df30dd3b7d79440fad1319bcbce9889de8686461 /Tests | |
parent | 20d086f1a2c320da59830682a19e006ec19dca94 (diff) | |
download | cmake-8514ee9b315b4ad02eed0e3cf11d8579f307fac0.tar.gz |
HIP: analyze output of `hipcc` to determine default GPU architecture
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/HIP/InferHipLang1/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Tests/HIP/InferHipLang2/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Tests/HIP/MathFunctions/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Tests/HIP/MixedLanguage/CMakeLists.txt | 1 |
4 files changed, 0 insertions, 4 deletions
diff --git a/Tests/HIP/InferHipLang1/CMakeLists.txt b/Tests/HIP/InferHipLang1/CMakeLists.txt index f3c54216c1..63d77fdaa4 100644 --- a/Tests/HIP/InferHipLang1/CMakeLists.txt +++ b/Tests/HIP/InferHipLang1/CMakeLists.txt @@ -10,4 +10,3 @@ target_compile_features(InterfaceWithHIP INTERFACE cxx_std_11) add_executable(HIPInferHipLang1 ) target_link_libraries(HIPInferHipLang1 PRIVATE InterfaceWithHIP) -set_property(TARGET HIPInferHipLang1 PROPERTY HIP_ARCHITECTURES gfx900) diff --git a/Tests/HIP/InferHipLang2/CMakeLists.txt b/Tests/HIP/InferHipLang2/CMakeLists.txt index a8a55b7b0a..0e69de38fe 100644 --- a/Tests/HIP/InferHipLang2/CMakeLists.txt +++ b/Tests/HIP/InferHipLang2/CMakeLists.txt @@ -7,7 +7,6 @@ add_library(InterfaceWithHIP OBJECT) target_sources(InterfaceWithHIP PRIVATE interface.hip main.cxx) target_compile_features(InterfaceWithHIP INTERFACE hip_std_14) target_compile_features(InterfaceWithHIP INTERFACE cxx_std_11) -set_property(TARGET InterfaceWithHIP PROPERTY HIP_ARCHITECTURES gfx900) add_executable(HIPInferHipLang2 ) target_link_libraries(HIPInferHipLang2 PRIVATE InterfaceWithHIP) diff --git a/Tests/HIP/MathFunctions/CMakeLists.txt b/Tests/HIP/MathFunctions/CMakeLists.txt index 69d63dd0a1..81e3ddb26f 100644 --- a/Tests/HIP/MathFunctions/CMakeLists.txt +++ b/Tests/HIP/MathFunctions/CMakeLists.txt @@ -13,7 +13,6 @@ project(MathFunctions HIP) # 3. This makes sure CMake properly links to all the built-in libraries # that hip needs that inject support for __half support # -set(CMAKE_HIP_ARCHITECTURES "gfx900") add_executable(HIPOnlyMathFunctions main.hip) target_compile_options(HIPOnlyMathFunctions PRIVATE -Werror) target_compile_features(HIPOnlyMathFunctions PRIVATE hip_std_14) diff --git a/Tests/HIP/MixedLanguage/CMakeLists.txt b/Tests/HIP/MixedLanguage/CMakeLists.txt index ce2ff89935..4f6dd3b0fb 100644 --- a/Tests/HIP/MixedLanguage/CMakeLists.txt +++ b/Tests/HIP/MixedLanguage/CMakeLists.txt @@ -3,7 +3,6 @@ project (MixedLanguage C CXX HIP) set(CMAKE_HIP_STANDARD 14) set(CMAKE_CXX_STANDARD 14) -set(CMAKE_HIP_ARCHITECTURES "gfx900") #Goal for this example: #make sure that we can build multiple languages into targets |