Skip to content

Commit

Permalink
Retrieve cpu_target from EESSI env vars
Browse files Browse the repository at this point in the history
Co-authored-by: Bob Dröge <[email protected]>
  • Loading branch information
t1mk1k and bedroge authored Feb 23, 2024
1 parent 8892437 commit 4e5f2db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ def parse_hook_casacore_disable_vectorize(ec, eprefix):
LooseVersion(ec.version) == LooseVersion('3.5.0') and
tcname == 'foss' and tcversion == '2023b'
):
if get_cpu_architecture() == CPU_TARGET_NEOVERSE_V1:
cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR')
if cpu_target == CPU_TARGET_NEOVERSE_V1:
ec['toolchainopts']['vectorize'] = False
print_msg("Changed toochainopts for %s: %s", ec.name, ec['toolchainopts'])
else:
Expand Down

0 comments on commit 4e5f2db

Please sign in to comment.