Skip to content

Commit 78b6f9e

Browse files
authored
add icx-cl support for Windows. (#4628)
This code add `CC` check and dispatch rule for Intel compiler `icx-cl` enabling.
1 parent 4109e15 commit 78b6f9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/triton/runtime/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def is_xpu():
2222

2323

2424
def _cc_cmd(cc, src, out, include_dirs, library_dirs, libraries):
25-
if "cl.EXE" in cc or "clang-cl" in cc:
25+
if "cl.EXE" in cc or "clang-cl" in cc or "icx-cl" in cc:
2626
cc_cmd = [cc, "/Zc:__cplusplus", "/std:c++17", src, "/nologo", "/O2", "/LD", "/wd4996", "/MD", "/EHsc"]
2727
cc_cmd += [f"/I{dir}" for dir in include_dirs]
2828
cc_cmd += [f"/Fo{os.path.join(os.path.dirname(out), 'main.obj')}"]

0 commit comments

Comments
 (0)