File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
third_party/intel/backend Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -506,6 +506,7 @@ class intel_knobs(base_knobs):
506506 # `ocloc query CL_DEVICE_EXTENSIONS`. If not set, a compiler calls `ocloc` in runtime to get
507507 # the actual device extensions.
508508 device_extensions : env_opt_str = env_opt_str ("TRITON_INTEL_DEVICE_EXTENSIONS" )
509+ device_arch : env_opt_str = env_opt_str ("TRITON_INTEL_DEVICE_ARCH" )
509510
510511
511512class amd_knobs (base_knobs ):
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def __init__(self, target: tuple) -> None:
118118 raise TypeError ("target.arch is not a dict" )
119119 dirname = os .path .dirname (os .path .realpath (__file__ ))
120120 mod = compile_module_from_src (Path (os .path .join (dirname , "arch_parser.c" )).read_text (), "arch_utils" )
121- self .device_arch = mod .parse_device_arch (target .arch .get ('architecture' , 0 ))
121+ self .device_arch = knobs . intel . device_arch or mod .parse_device_arch (target .arch .get ('architecture' , 0 ))
122122 self .properties = self .parse_target (target .arch )
123123 self .binary_ext = "spv"
124124
You can’t perform that action at this time.
0 commit comments