10000
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 ea23429 commit c43bf06Copy full SHA for c43bf06
torch/utils/cpp_extension.py
@@ -290,6 +290,8 @@ def _join_sycl_home(*paths) -> str:
290
def _get_sycl_arch_list():
291
if 'TORCH_XPU_ARCH_LIST' in os.environ:
292
return os.environ.get('TORCH_XPU_ARCH_LIST')
293
+ if not torch.xpu.is_available():
294
+ return ""
295
arch_list = torch.xpu.get_arch_list()
296
# Dropping dg2-* archs since they lack hardware support for fp64 and require
297
# special consideration from the user. If needed these platforms can
0 commit comments