Skip to content

Commit c37c328

Browse files
committed
Only unset specific TRITON vars
The current match unsets also required `TRITON_*_PATH` variables like `TRITON_PTXAS_PATH` set by the Triton module.
1 parent 5ca4109 commit c37c328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easybuild/easyblocks/p/pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def _set_cache_dir(self):
546546
env.setvar('XDG_CACHE_HOME', cache_dir)
547547
# Triton also uses a path defaulting to $HOME
548548
# Isolate against user-set variables
549-
env.unset_env_vars(var for var in os.environ if var.startswith('TRITON_'))
549+
env.unset_env_vars(('TRITON_DUMP_DIR', 'TRITON_OVERRIDE_DIR', 'TRITON_CACHE_DIR'))
550550
triton_home = os.path.join(self.tmpdir, '.triton_home')
551551
env.setvar('TRITON_HOME', triton_home)
552552

0 commit comments

Comments
 (0)