File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 77import torch
88import triton
99import 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
1313def 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
You can’t perform that action at this time.
0 commit comments