Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

Commit bfd66a9

Browse files
committed
feat(builder): missing function call on get_device_capability ...
1 parent ebd6970 commit bfd66a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build2cmake/src/templates/xpu/preamble.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ message(STATUS "Configuring for Intel XPU backend using SYCL")
5555
# Generate standardized build name
5656
run_python(TORCH_VERSION "import torch; print(torch.__version__.split('+')[0])" "Failed to get Torch version")
5757
run_python(CXX11_ABI_VALUE "import torch; print('TRUE' if torch._C._GLIBCXX_USE_CXX11_ABI else 'FALSE')" "Failed to get CXX11 ABI")
58-
run_python(XPU_VERSION "import torch; print(torch.xpu.get_device_capability['version'].split('+')[0])" "Failed to get XPU version")
58+
run_python(XPU_VERSION "import torch; print(torch.xpu.get_device_capability()['version'].split('+')[0])" "Failed to get XPU version")
5959
cmake_host_system_information(RESULT HOST_ARCH QUERY OS_PLATFORM)
6060
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
6161
set(SYSTEM_STRING "${HOST_ARCH}-linux")

0 commit comments

Comments
 (0)