Skip to content

Commit

Permalink
cmake: expand default AMDGPU_TARGETS and pass to hipcc when building …
Browse files Browse the repository at this point in the history
…hipfft-test
  • Loading branch information
evetsso committed Jan 5, 2023
1 parent 1d61deb commit 7e167bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ else()
if( BUILD_WITH_COMPILER STREQUAL "HIP-CLANG" )
set( HIP_PLATFORM "amd" )
set( HIP_COMPILER "clang" )
set( AMDGPU_TARGETS gfx803;gfx900;gfx906;gfx908 CACHE STRING
set( AMDGPU_TARGETS gfx803;gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a:xnack-;gfx90a:xnack+;gfx1030;gfx1100;gfx1101;gfx1102 CACHE STRING
"List of specific machine types for library to target" )

if(BUILD_ADDRESS_SANITIZER)
Expand Down
3 changes: 3 additions & 0 deletions clients/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ else()
Boost_PROGRAM_OPTIONS_LIBRARY_RELEASE
${Boost_PROGRAM_OPTIONS_LIBRARY_RELEASE})
endif()
foreach( target ${AMDGPU_TARGETS} )
target_compile_options( hipfft-test PRIVATE --offload-arch=${target} )
endforeach( )
endif()

if( DEFINED ${HIP_PLATFORM} )
Expand Down

0 comments on commit 7e167bb

Please sign in to comment.