8000
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 f2c02e7 commit 78de53aCopy full SHA for 78de53a
torch/utils/cpp_extension.py
@@ -291,6 +291,9 @@ def _get_sycl_arch_list():
291
arch_list = [x for x in arch_list if not x.startswith('dg2')]
292
return ','.join(arch_list)
293
294
+# If arch list returned by _get_sycl_arch_list() is empty, then sycl kernels will be compiled
295
+# for default spir64 target and avoid device specific compilations entirely. Further, kernels
296
+# will be JIT compiled at runtime.
297
_COMMON_SYCL_FLAGS = [
298
'-fsycl',
299
'-fsycl-targets=spir64_gen,spir64' if _get_sycl_arch_list() != '' else '',
0 commit comments