Skip to content

Commit 49fd500

Browse files
[CONSAN] Disable overflow checks in consan (#8940)
Disabling overflow asserts when ConSan is enabled. Overflow checks are enabled by default, however, the checks code interfere with couple of compiler passes (WS and others), and slow down already slow compilation of instrumented kernels.
1 parent ab36c1f commit 49fd500

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

third_party/nvidia/backend/compiler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ def parse_options(self, opts) -> Any:
173173
# Enable debug mode for ConSan, so device-side assertions are not optimized out
174174
if "instrumentation_mode" in opts and opts["instrumentation_mode"] == "consan":
175175
opts["debug"] = True
176+
opts["sanitize_overflow"] = False
176177

177178
args = {'arch': knobs.runtime.override_arch or f"sm{self.target.arch}"}
178179
args.update({k: opts[k] for k in CUDAOptions.__dataclass_fields__.keys() if k in opts if opts[k] is not None})

0 commit comments

Comments
 (0)