Skip to content

Commit 221175c

Browse files
committed
libsycl-asan skip amd and nv
1 parent 7711096 commit 221175c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

libdevice/cmake/modules/SYCLLibdevice.cmake

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function(add_devicelibs filename)
197197
cmake_parse_arguments(ARG
198198
""
199199
""
200-
"SRC;EXTRA_OPTS;DEPENDENCIES"
200+
"SRC;EXTRA_OPTS;DEPENDENCIES;SKIP_ARCHS"
201201
${ARGN})
202202

203203
foreach(filetype IN LISTS filetypes)
@@ -209,6 +209,9 @@ function(add_devicelibs filename)
209209
endforeach()
210210

211211
foreach(arch IN LISTS devicelib_arch)
212+
if(arch IN_LIST ARG_SKIP_ARCHS)
213+
continue()
214+
endif()
212215
compile_lib(${filename}-${arch}
213216
FILETYPE bc
214217
SRC ${ARG_SRC}
@@ -351,7 +354,9 @@ else()
351354
add_devicelibs(libsycl-asan
352355
SRC sanitizer/asan_rtl.cpp
353356
DEPENDENCIES ${asan_obj_deps}
354-
EXTRA_OPTS -fno-sycl-instrument-device-code
357+
SKIP_ARCHS nvptx64-nvidia-cuda
358+
amdgcn-amd-amdhsa
359+
EXTRA_OPTS -fno-sycl-instrument-device-code
355360
-I${UR_SANITIZER_INCLUDE_DIR}
356361
-I${CMAKE_CURRENT_SOURCE_DIR})
357362

0 commit comments

Comments
 (0)