Skip to content

Commit

Permalink
fix version check for NVPTX library in sanity check of Clang easyblock (
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Sep 10, 2022
1 parent ba43a75 commit 43aae4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easybuild/easyblocks/c/clang.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def sanity_check_step(self):
cuda_cc = cfg_cuda_cc or ec_cuda_cc or []
# We need the CUDA capability in the form of '75' and not '7.5'
cuda_cc = [cc.replace('.', '') for cc in cuda_cc]
if LooseVersion('11.0') < LooseVersion(self.version) < LooseVersion('13.0'):
if LooseVersion('12.0') < LooseVersion(self.version) < LooseVersion('13.0'):
custom_paths['files'].extend(["lib/libomptarget-nvptx-cuda_%s-sm_%s.bc" % (x, y)
for x in CUDA_TOOLKIT_SUPPORT for y in cuda_cc])
else:
Expand Down

0 comments on commit 43aae4b

Please sign in to comment.