From 0e97868b72a3868b824c96ff0f28f26029aaac8a Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Thu, 20 Feb 2025 02:56:12 +0100 Subject: [PATCH] Fix some logic in the PTX warning printed --- easybuild/framework/easyblock.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/easybuild/framework/easyblock.py b/easybuild/framework/easyblock.py index 0a718fd31f..747838f959 100644 --- a/easybuild/framework/easyblock.py +++ b/easybuild/framework/easyblock.py @@ -3373,13 +3373,14 @@ def sanity_check_cuda(self, cuda_dirs=None, check_cuobjdump=True): self.log.debug(msg) # Check whether there is ptx code for the highest CC in cfg_ccs - highest_cc = sorted(cfg_ccs)[-1] + highest_cc = [sorted(cfg_ccs)[-1]] missing_ptx_ccs = list(set(highest_cc) - set(derived_ptx_ccs)) if missing_ptx_ccs: fail_msg = "Configured highest compute capability was '%s', " - fail_msg += "but no PTX code for this compute capability was found in '%s'" - self.log.warning(fail_msg, highest_cc, missing_ptx_ccs) + fail_msg += "but no PTX code for this compute capability was found in '%s' " + fail_msg += "PTX architectures supported in that file: %s" + self.log.warning(fail_msg, highest_cc[0], path, derived_ptx_ccs) else: msg = (f"Output of 'cuobjdump' checked for {path}; ptx code was present for (at least) the" " highest CUDA compute capability in cuda_compute_capabilities")