File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments