[Bugfix] Fix xpu build (#7644)

This commit is contained in:
Kunshang Ji 2024-08-19 13:00:09 +08:00 committed by GitHub
parent f710fb5265
commit 1a36287b89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -279,7 +279,7 @@ def _build_custom_ops() -> bool:
def _build_core_ext() -> bool:
return not _is_neuron() and not _is_tpu() and not _is_openvino()
return not (_is_neuron() or _is_tpu() or _is_openvino() or _is_xpu())
def get_hipcc_rocm_version():