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):
506
506
# `ocloc query CL_DEVICE_EXTENSIONS`. If not set, a compiler calls `ocloc` in runtime to get
507
507
# the actual device extensions.
508
508
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" )
509
510
510
511
511
512
class amd_knobs (base_knobs ):
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def __init__(self, target: tuple) -> None:
118
118
raise TypeError ("target.arch is not a dict" )
119
119
dirname = os .path .dirname (os .path .realpath (__file__ ))
120
120
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 ))
122
122
self .properties = self .parse_target (target .arch )
123
123
self .binary_ext = "spv"
124
124
You can’t perform that action at this time.
0 commit comments