We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bdc448 commit 4e486b4Copy full SHA for 4e486b4
libdevice/cmake/modules/SYCLLibdevice.cmake
@@ -197,8 +197,12 @@ function(add_devicelibs filename)
197
endforeach()
198
199
foreach(arch IN LISTS devicelib_arch)
200
- list(FIND ${ARG_SKIP_ARCHS} "${arch}" skip_idx)
201
- if (${skip_idx} EQUAL -1)
+ set(skip_idx -1)
+ set(skip_arch_list ${ARG_SKIP_ARCHS})
202
+ if (skip_arch_list)
203
+ list(FIND skip_arch_list ${arch} skip_idx)
204
+ endif()
205
+ if (skip_idx EQUAL -1)
206
compile_lib(${filename}-${arch}
207
FILETYPE bc
208
SRC ${ARG_SRC}
0 commit comments