Skip to content

Commit

Permalink
Merge pull request #2644 from boegel/20211223142950_new_pr_intel_comp…
Browse files Browse the repository at this point in the history
…ilers

don't grep for specific version in --version output of Intel compiler commands for versions 2022.x
  • Loading branch information
bedroge authored Dec 23, 2021
2 parents f880dbd + a3eb09c commit 7daeca2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion easybuild/easyblocks/i/intel_compilers.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ def sanity_check_step(self):

all_compiler_cmds = classic_compiler_cmds + oneapi_compiler_cmds
custom_commands = ["which %s" % c for c in all_compiler_cmds]
custom_commands.extend("%s --version | grep %s" % (c, self.version) for c in all_compiler_cmds)

# only for 2021.x versions do all compiler commands have the expected version;
# for example: for 2022.0.1, icc has version 2021.5.0, icpx has 2022.0.0
if LooseVersion(self.version) >= LooseVersion('2022.0'):
custom_commands.extend("%s --version" % c for c in all_compiler_cmds)
else:
custom_commands.extend("%s --version | grep %s" % (c, self.version) for c in all_compiler_cmds)

super(EB_intel_minus_compilers, self).sanity_check_step(custom_paths=custom_paths,
custom_commands=custom_commands)
Expand Down

0 comments on commit 7daeca2

Please sign in to comment.