Skip to content

Commit 9815b17

Browse files
committed
do not error on CUDA version mismatch in NVHPC with external CUDA
1 parent fcf8f59 commit 9815b17

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

easybuild/easyblocks/generic/nvidiabase.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,9 @@ def _get_active_cuda(self):
153153
if cuda_dependency_version:
154154
external_cuda_version = '.'.join(cuda_dependency_version.split('.')[:2])
155155
if supported_cuda_versions and external_cuda_version not in supported_cuda_versions:
156-
raise EasyBuildError(
157-
f"CUDA version '{external_cuda_version}' from external CUDA not supported by "
156+
# we cannot error out here to avoid breaking existing easyconfigs
157+
print_warning(
158+
f"CUDA version '{external_cuda_version}' from external CUDA might not be supported by "
158159
f"{self.name}-{self.version}: {supported_cuda_commasep}"
159160
)
160161
self.log.info(

0 commit comments

Comments
 (0)