File tree Expand file tree Collapse file tree 3 files changed +26
-11
lines changed Expand file tree Collapse file tree 3 files changed +26
-11
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,6 @@ config.substitutions.append(
9
9
(" %force_device_asan_rt" , " env UR_ENABLE_LAYERS=UR_LAYER_ASAN" )
10
10
)
11
11
12
- if " -fsanitize=memory" in config.cxx_flags:
13
- config.unsupported =True
14
-
15
12
# AddressSanitizer is not currently supported for non-spir triples
16
13
config.unsupported_features += [' target-nvidia' , ' target-amd' ]
17
14
@@ -23,3 +20,11 @@ config.unsupported_features += ['spirv-backend']
23
20
24
21
# https://github.com/intel/llvm/issues/16920
25
22
config.unsupported_features += [' arch-intel_gpu_bmg_g21' ]
23
+
24
+ unsupported_san_flags = [
25
+ # "-fsanitize=address",
26
+ " -fsanitize=memory" ,
27
+ " -fsanitize=thread" ,
28
+ ]
29
+ if any(flag in config.cxx_flags for flag in unsupported_san_flags):
30
+ config.unsupported =True
Original file line number Diff line number Diff line change 1
1
has_arch_gpu_intel_pvc = any(' arch-intel_gpu_pvc' in T for T in config.sycl_dev_features.values())
2
2
if not has_arch_gpu_intel_pvc:
3
- config.unsupported_features += [' gpu' ]
3
+ config.unsupported_features += [' gpu' ]
4
4
else:
5
- # TRACKER for PVC + igc-dev: https://github.com/intel/llvm/issues/16401
6
- config.unsupported_features += [' igc-dev' ]
5
+ # TRACKER for PVC + igc-dev: https://github.com/intel/llvm/issues/16401
6
+ config.unsupported_features += [' igc-dev' ]
7
7
8
8
# MemorySanitizer is not currently supported for non-spir triples
9
9
config.unsupported_features += [' target-nvidia' , ' target-amd' ]
@@ -24,5 +24,10 @@ config.substitutions.append(
24
24
(" %force_device_msan_rt" , " env UR_ENABLE_LAYERS=UR_LAYER_MSAN" )
25
25
)
26
26
27
- if " -fsanitize=address" in config.cxx_flags:
27
+ unsupported_san_flags = [
28
+ " -fsanitize=address" ,
29
+ # "-fsanitize=memory",
30
+ " -fsanitize=thread" ,
31
+ ]
32
+ if any(flag in config.cxx_flags for flag in unsupported_san_flags):
28
33
config.unsupported =True
Original file line number Diff line number Diff line change 1
1
has_arch_gpu_intel_pvc = any(' arch-intel_gpu_pvc' in T for T in config.sycl_dev_features.values())
2
2
if not has_arch_gpu_intel_pvc:
3
- config.unsupported_features += [' gpu' ]
3
+ config.unsupported_features += [' gpu' ]
4
4
else:
5
- # TRACKER for PVC + igc-dev: https://github.com/intel/llvm/issues/16401
6
- config.unsupported_features += [' igc-dev' ]
5
+ # TRACKER for PVC + igc-dev: https://github.com/intel/llvm/issues/16401
6
+ config.unsupported_features += [' igc-dev' ]
7
7
8
8
# ThreadSanitizer is not currently supported for non-spir triples
9
9
config.unsupported_features += [' target-nvidia' , ' target-amd' ]
@@ -21,5 +21,10 @@ config.substitutions.append(
21
21
(" %device_tsan_flags" , " -Xarch_device -fsanitize=thread" )
22
22
)
23
23
24
- if " -fsanitize=address" in config.cxx_flags or " -fsanitize=memory" in config.cxx_flags:
24
+ unsupported_san_flags = [
25
+ " -fsanitize=address" ,
26
+ " -fsanitize=memory" ,
27
+ # "-fsanitize=thread",
28
+ ]
29
+ if any(flag in config.cxx_flags for flag in unsupported_san_flags):
25
30
config.unsupported =True
You can’t perform that action at this time.
0 commit comments