File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ def _ensure_inductor_compiler():
3737 if fallback not in search and shutil .which (fallback ):
3838 search .append (fallback )
3939 inductor_config .cpp .cxx = tuple (search )
40+ # Clear LD_PRELOAD so compiler subprocesses don't inherit the LSAN runtime,
41+ # which causes false leak reports and non-zero exit codes in g++.
42+ os .environ .pop ("LD_PRELOAD" , None )
4043
4144
4245def _load_custom_ops ():
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ def _ensure_inductor_compiler():
3737 if fallback not in search and shutil .which (fallback ):
3838 search .append (fallback )
3939 inductor_config .cpp .cxx = tuple (search )
40+ # Clear LD_PRELOAD so compiler subprocesses don't inherit the LSAN runtime,
41+ # which causes false leak reports and non-zero exit codes in g++.
42+ os .environ .pop ("LD_PRELOAD" , None )
4043
4144
4245def _load_custom_ops ():
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ def _ensure_inductor_compiler():
3737 if fallback not in search and shutil .which (fallback ):
3838 search .append (fallback )
3939 inductor_config .cpp .cxx = tuple (search )
40+ # Clear LD_PRELOAD so compiler subprocesses don't inherit the LSAN runtime,
41+ # which causes false leak reports and non-zero exit codes in g++.
42+ os .environ .pop ("LD_PRELOAD" , None )
4043
4144
4245def _load_custom_ops ():
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ def _ensure_inductor_compiler():
3737 if fallback not in search and shutil .which (fallback ):
3838 search .append (fallback )
3939 inductor_config .cpp .cxx = tuple (search )
40+ # Clear LD_PRELOAD so compiler subprocesses don't inherit the LSAN runtime,
41+ # which causes false leak reports and non-zero exit codes in g++.
42+ os .environ .pop ("LD_PRELOAD" , None )
4043
4144
4245def _load_custom_ops ():
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ def _ensure_inductor_compiler():
3333 if fallback not in search and shutil .which (fallback ):
3434 search .append (fallback )
3535 inductor_config .cpp .cxx = tuple (search )
36+ # Clear LD_PRELOAD so compiler subprocesses don't inherit the LSAN runtime,
37+ # which causes false leak reports and non-zero exit codes in g++.
38+ os .environ .pop ("LD_PRELOAD" , None )
3639
3740
3841def _load_custom_ops ():
You can’t perform that action at this time.
0 commit comments