Skip to content

Commit bbf7375

Browse files
authored
Merge pull request #1398 from ROCm/asan_fix_6.2
fix ASAN target list
2 parents c658982 + a5cd58c commit bbf7375

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,16 @@ message("checking which targets are supported")
111111
#These targets will be filtered and only supported ones will be used
112112
#Setting GPU_TARGETS on command line will override this list
113113
if(NOT PROFILER_ONLY)
114+
if(NOT ENABLE_ASAN_PACKAGING)
115+
#build CK for all supported targets
114116
rocm_check_target_ids(DEFAULT_GPU_TARGETS
115117
TARGETS "gfx908;gfx90a;gfx940;gfx941;gfx942;gfx1030;gfx1100;gfx1101;gfx1102")
118+
else()
119+
#build CK only for xnack-supported targets
120+
rocm_check_target_ids(DEFAULT_GPU_TARGETS
121+
TARGETS "gfx908:xnack+;gfx90a:xnack+;gfx940:xnack+;gfx941:xnack+;gfx942:xnack+")
122+
set(GPU_TARGETS "${DEFAULT_GPU_TARGETS}" CACHE STRING " " FORCE)
123+
endif()
116124
else()
117125
add_definitions(-DPROFILER_ONLY)
118126
set(GPU_TARGETS "" CACHE STRING "" FORCE)

0 commit comments

Comments
 (0)