Skip to content

Commit

Permalink
fix access to env var
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Jun 7, 2024
1 parent aac02c4 commit ef03bcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ def pre_sanitycheck_sentence_piece_ld_preload_aarch64(self, *args, **kwargs):
cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR')

if self.name == 'SentencePiece' and self.version in ['0.2.0'] and cpu_target == CPU_TARGET_AARCH64_GENERIC:
ebrootgperftools = os.environ('EBROOTGPERFTOOLS')
ebrootgperftools = os.getenv('EBROOTGPERFTOOLS')
lib_tcmalloc_minimal = os.path.join(ebrootgperftools, 'lib64', 'libtcmalloc_minimal.so')
env.setvar('LD_PRELOAD', lib_tcmalloc_minimal)
print_msg("Set LD_PRELOAD env var to '%s'", os.environ('LD_PRELOAD'))
Expand Down

0 comments on commit ef03bcf

Please sign in to comment.