Make the use of the required keyword conditional on the EB version#179
Merged
ocaisa merged 3 commits intoEESSI:mainfrom Mar 11, 2026
Merged
Make the use of the required keyword conditional on the EB version#179ocaisa merged 3 commits intoEESSI:mainfrom
ocaisa merged 3 commits intoEESSI:mainfrom
Conversation
added 2 commits
March 11, 2026 14:07
…ering that are not supported in older versions
ocaisa
approved these changes
Mar 11, 2026
Member
ocaisa
left a comment
There was a problem hiding this comment.
LGTM, tested via
{EESSI/2023.06} [ocaisa@aarch64-neoverse-v1-node1 caspar_test]$ module list
Currently Loaded Modules:
1) EESSI/2023.06 2) EasyBuild/4.9.4 3) EESSI-extend/2023.06-easybuild
{EESSI/2023.06} [ocaisa@aarch64-neoverse-v1-node1 caspar_test]$ eb -x CUDA-12.1.1.eb
== Temporary log file in case of crash /tmp/eb-pvv0n_a9/easybuild-99yft85z.log
file /tmp/eb-pvv0n_a9/fake_vsc_5gf7ewb6 removed
...
*** DRY RUN using 'EB_CUDA' easyblock (easybuild.easyblocks.cuda @ /cvmfs/software.eessi.io/versions/2023.06/software/linux/aarch64/neoverse_v1/software/EasyBuild/4.9.4/lib/python3.11/site-packages/easybuild/easyblocks/c/cuda.py) ***
== building and installing CUDA/12.1.1...
>> installation prefix: /tmp/eb-pvv0n_a9/__ROOT__/home/ocaisa/eessi/versions/2023.06/software/linux/aarch64/neoverse_v1/software/CUDA/12.1.1
fetching files... [DRY RUN]
== Running pre-fetch hook...
directory /home/ocaisa/eessi/versions/2023.06/software/linux/aarch64/neoverse_v1/software/.locks/_tmp_eb-pvv0n_a9___ROOT___home_ocaisa_eessi_versions_2023.06_software_linux_aarch64_neoverse_v1_software_CUDA_12.1.1.lock removed
ERROR: Traceback (most recent call last):
File "/cvmfs/software.eessi.io/versions/2023.06/software/linux/aarch64/neoverse_v1/software/EasyBuild/4.9.4/lib/python3.11/site-packages/easybuild/main.py", line 137, in build_and_install_software
(ec_res['success'], app_log, err) = build_and_install_one(ec, init_env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/software.eessi.io/versions/2023.06/software/linux/aarch64/neoverse_v1/software/EasyBuild/4.9.4/lib/python3.11/site-packages/easybuild/framework/easyblock.py", line 4276, in build_and_install_one
result = app.run_all_steps(run_test_cases=run_test_cases)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/software.eessi.io/versions/2023.06/software/linux/aarch64/neoverse_v1/software/EasyBuild/4.9.4/lib/python3.11/site-packages/easybuild/framework/easyblock.py", line 4155, in run_all_steps
self.run_step(step_name, step_methods)
File "/cvmfs/software.eessi.io/versions/2023.06/software/linux/aarch64/neoverse_v1/software/EasyBuild/4.9.4/lib/python3.11/site-packages/easybuild/framework/easyblock.py", line 3965, in run_step
run_hook(step, self.hooks, pre_step_hook=True, args=[self])
File "/cvmfs/software.eessi.io/versions/2023.06/software/linux/aarch64/neoverse_v1/software/EasyBuild/4.9.4/lib/python3.11/site-packages/easybuild/tools/hooks.py", line 240, in run_hook
res = hook(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/software.eessi.io/versions/2023.06/init/easybuild/eb_hooks.py", line 686, in pre_fetch_hook
pre_fetch_hook_unsupported_modules(self, *args, **kwargs)
File "/cvmfs/software.eessi.io/versions/2023.06/init/easybuild/eb_hooks.py", line 824, in pre_fetch_hook_unsupported_modules
if is_unsupported_module(self):
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/software.eessi.io/versions/2023.06/init/easybuild/eb_hooks.py", line 791, in is_unsupported_module
cuda_ccs_string = self.cfg.get_cuda_cc_template_value('cuda_compute_capabilities', required=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: EasyConfig.get_cuda_cc_template_value() got an unexpected keyword argument 'required'
{EESSI/2023.06} [ocaisa@aarch64-neoverse-v1-node1 caspar_test]$ eb -x --hooks ./eb_hooks.py CUDA-12.1.1.eb
== Temporary log file in case of crash /tmp/eb-5c66lpr2/easybuild-c83q2qke.log
file /tmp/eb-5c66lpr2/fake_vsc_7d1c1juv removed
...
== processing EasyBuild easyconfig
...
== Running post-module hook...
permissions... [DRY RUN]
[permissions_step method]
packaging... [DRY RUN]
[package_step method]
directory /home/ocaisa/eessi/versions/2023.06/software/linux/aarch64/neoverse_v1/software/.locks/_tmp_eb-5c66lpr2___ROOT___home_ocaisa_eessi_versions_2023.06_software_linux_aarch64_neoverse_v1_software_CUDA_12.1.1.lock removed
== COMPLETED: Installation ended successfully (took 0 secs)
Important note: the actual build & install procedure that will be performed may diverge
(slightly) from what is outlined above, due to conditions in the easyblock which are
incorrectly handled in a dry run.
Any errors that may occur are ignored and reported as warnings, on a per-step basis.
Please be aware of this, and only use the information above for quick debugging purposes.
!!!
!!! WARNING: One or more errors were ignored, see warnings above
!!!
== Build succeeded for 1 out of 1
== Temporary log file(s) /tmp/eb-5c66lpr2/easybuild-c83q2qke.log* have been removed.
== Temporary directory /tmp/eb-5c66lpr2 has been removed.
{EESSI/2023.06} [ocaisa@aarch64-neoverse-v1-node1 caspar_test]$
Member
|
bot: build repo:eessi.io-2023.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx |
|
New job on instance
|
|
New job on instance
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.