Skip to content

Commit c1ba6a6

Browse files
committed
[intel] fix 'test_launch_with_options' after '0be0607'
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 17a1e56 commit c1ba6a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/test/unit/runtime/test_launch.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import torch
88
import triton
99
import triton.language as tl
10-
from triton._internal_testing import is_cuda, is_hip
10+
from triton._internal_testing import is_cuda, is_hip, is_xpu
1111

1212

1313
def test_metadata() -> None:
@@ -161,6 +161,9 @@ def test_launch_with_options(options) -> None:
161161
elif is_hip():
162162
libdir = current_dir.parent.parent.parent.parent / 'third_party/amd/backend/lib'
163163
options["extern_libs"] = {"ocml": str(libdir / 'ocml.bc'), "ockl": str(libdir / 'ockl.bc')}
164+
elif is_xpu():
165+
libdir = current_dir.parent.parent.parent.parent / 'third_party/intel/backend/lib'
166+
options["extern_libs"] = {"libdevice": str(libdir / 'libsycl-spir64-unknown-unknown.bc')}
164167

165168
compile_info = {}
166169
counter = 0

0 commit comments

Comments
 (0)