Skip to content

Commit 4f0eeee

Browse files
committed
tweak log message for not auto-enabling offload targets for LLVM < 18
1 parent 939173d commit 4f0eeee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/easyblocks/l/llvm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def __init__(self, *args, **kwargs):
366366
cuda_toolchain = hasattr(self.toolchain, 'COMPILER_CUDA_FAMILY')
367367
if 'cuda' in deps or cuda_toolchain or cuda_cc_list:
368368
if LooseVersion(self.version) < LooseVersion('18'):
369-
self.log.warning("CUDA support is only available in LLVM >= 18")
369+
self.log.info(f"Not auto-enabling {BUILD_TARGET_NVPTX} offload target, only done for LLVM >= 18")
370370
else:
371371
build_targets.append(BUILD_TARGET_NVPTX)
372372
self.offload_targets += ['cuda'] # Used for LLVM >= 19
@@ -378,7 +378,7 @@ def __init__(self, *args, **kwargs):
378378
# https://openmp.llvm.org/SupportAndFAQ.html#q-how-to-build-an-openmp-amdgpu-offload-capable-compiler
379379
if 'rocr-runtime' in deps or amd_gfx_list:
380380
if LooseVersion(self.version) < LooseVersion('18'):
381-
self.log.warning("AMDGPU support is only available in LLVM >= 18")
381+
self.log.info(f"Not auto-enabling {BUILD_TARGET_AMDGPU} offload target, only done for LLVM >= 18")
382382
else:
383383
build_targets.append(BUILD_TARGET_AMDGPU)
384384
self.offload_targets += ['amdgpu'] # Used for LLVM >= 19

0 commit comments

Comments
 (0)