Skip to content

Commit 6e7676c

Browse files
committed
Merge branch '2023.06-software.eessi.io' of github-trz:EESSI/software-layer into 2023.06-a64fx-2023a-eb491-apps-pytorch
2 parents ec5bec5 + f850991 commit 6e7676c

File tree

4 files changed

+49
-86
lines changed

4 files changed

+49
-86
lines changed

det_submit_opts.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

easystacks/software.eessi.io/2023.06/a64fx/eessi-2023.06-eb-4.9.4-2023a.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -266,34 +266,34 @@ easyconfigs:
266266
# R-bundle-CRAN requires a lot of time. We first build that one and afterwards
267267
# continue with the ones below.
268268
#
269-
## while PR 20379 is included since EB 4.9.2, we need to use a commit to avoid
270-
## rebuilding R-bundle-Bioconductor due to the later PR 21948 which was only made
271-
## available with EB 5.0.0
272-
## - R-bundle-Bioconductor-3.18-foss-2023a-R-4.3.2.eb:
273-
## options:
274-
## from-pr: 20379
269+
# while PR 20379 is included since EB 4.9.2, we need to use a commit to avoid
270+
# rebuilding R-bundle-Bioconductor due to the later PR 21948 which was only made
271+
# available with EB 5.0.0
275272
# - R-bundle-Bioconductor-3.18-foss-2023a-R-4.3.2.eb:
276273
# options:
277-
# # (additional extensions have been added)
278-
# # see https://github.com/easybuilders/easybuild-easyconfigs/pull/21948
279-
# from-commit: f9cfe6ac7d9019970c2be3e8b09db4d846cf005a
280-
## PR 18852 is included since EB 4.9.2
281-
## - ipympl-0.9.3-gfbf-2023a.eb:
282-
## options:
283-
## # see https://github.com/easybuilders/easybuild-easyconfigs/pull/18852
284-
## from-pr: 18852
285-
# - ipympl-0.9.3-gfbf-2023a.eb
286-
## PR 20595 is included since EB 4.9.2
287-
## - ESPResSo-4.2.2-foss-2023a.eb:
288-
## options:
289-
## from-pr: 20595
290-
# - ESPResSo-4.2.2-foss-2023a.eb
291-
# - GATK-4.5.0.0-GCCcore-12.3.0-Java-17.eb
292-
# - WhatsHap-2.2-foss-2023a.eb
293-
## PR 20784 is included since EB 4.9.2
294-
## - BLAST+-2.14.1-gompi-2023a.eb:
295-
## options:
296-
## from-pr: 20784
297-
# - BLAST+-2.14.1-gompi-2023a.eb
298-
# - Valgrind-3.21.0-gompi-2023a.eb
299-
# - OrthoFinder-2.5.5-foss-2023a.eb
274+
# from-pr: 20379
275+
- R-bundle-Bioconductor-3.18-foss-2023a-R-4.3.2.eb:
276+
options:
277+
# (additional extensions have been added)
278+
# see https://github.com/easybuilders/easybuild-easyconfigs/pull/21948
279+
from-commit: f9cfe6ac7d9019970c2be3e8b09db4d846cf005a
280+
# PR 18852 is included since EB 4.9.2
281+
# - ipympl-0.9.3-gfbf-2023a.eb:
282+
# options:
283+
# # see https://github.com/easybuilders/easybuild-easyconfigs/pull/18852
284+
# from-pr: 18852
285+
- ipympl-0.9.3-gfbf-2023a.eb
286+
# PR 20595 is included since EB 4.9.2
287+
# - ESPResSo-4.2.2-foss-2023a.eb:
288+
# options:
289+
# from-pr: 20595
290+
- ESPResSo-4.2.2-foss-2023a.eb
291+
- GATK-4.5.0.0-GCCcore-12.3.0-Java-17.eb
292+
- WhatsHap-2.2-foss-2023a.eb
293+
# PR 20784 is included since EB 4.9.2
294+
# - BLAST+-2.14.1-gompi-2023a.eb:
295+
# options:
296+
# from-pr: 20784
297+
- BLAST+-2.14.1-gompi-2023a.eb
298+
- Valgrind-3.21.0-gompi-2023a.eb
299+
- OrthoFinder-2.5.5-foss-2023a.eb

easystacks/software.eessi.io/2023.06/a64fx/eessi-2023.06-eb-4.9.4-2023b.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,10 @@ easyconfigs:
8080
- OpenJPEG-2.5.0-GCCcore-13.2.0.eb
8181
- libwebp-1.3.2-GCCcore-13.2.0.eb
8282
- Wayland-1.22.0-GCCcore-13.2.0.eb
83-
# building nodejs (dependency of Qt5) failed in a first attempt, so we build the
84-
# other packages and pick that up later
85-
## originally built with EB 4.9.0, PR was included since EB 4.9.1
86-
## - Qt5-5.15.13-GCCcore-13.2.0.eb:
87-
## options:
88-
## # see https://github.com/easybuilders/easybuild-easyconfigs/pull/20201
89-
## from-pr: 20201
90-
# - Qt5-5.15.13-GCCcore-13.2.0.eb
9183
- OSU-Micro-Benchmarks-7.2-gompi-2023b.eb
84+
# originally built with EB 4.9.0, PR was included since EB 4.9.1
85+
# - Qt5-5.15.13-GCCcore-13.2.0.eb:
86+
# options:
87+
# # see https://github.com/easybuilders/easybuild-easyconfigs/pull/20201
88+
# from-pr: 20201
89+
- Qt5-5.15.13-GCCcore-13.2.0.eb

eb_hooks.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from easybuild.tools.run import run_cmd
1414
from easybuild.tools.systemtools import AARCH64, POWER, X86_64, get_cpu_architecture, get_cpu_features
1515
from easybuild.tools.toolchain.compiler import OPTARCH_GENERIC
16+
from easybuild.tools.version import VERSION as EASYBUILD_VERSION
1617

1718
# prefer importing LooseVersion from easybuild.tools, but fall back to distuils in case EasyBuild <= 4.7.0 is used
1819
try:
@@ -126,9 +127,15 @@ def post_ready_hook(self, *args, **kwargs):
126127
Post-ready hook: limit parallellism for selected builds based on software name and CPU target.
127128
parallelism needs to be limited because some builds require a lot of memory per used core.
128129
"""
129-
# 'parallel' easyconfig parameter is set via EasyBlock.set_parallel in ready step based on available cores.
130+
# 'parallel' (EB4) or 'max_parallel' (EB5) easyconfig parameter is set via EasyBlock.set_parallel in ready step
131+
# based on available cores.
132+
133+
# Check whether we have EasyBuild 4 or 5
134+
parallel_param = 'parallel'
135+
if EASYBUILD_VERSION >= '5':
136+
parallel_param = 'max_parallel'
130137
# get current parallelism setting
131-
parallel = self.cfg['parallel']
138+
parallel = self.cfg[parallel_param]
132139
if parallel == 1:
133140
return # no need to limit if already using 1 core
134141

@@ -152,7 +159,7 @@ def post_ready_hook(self, *args, **kwargs):
152159

153160
# apply the limit if it's different from current
154161
if new_parallel != parallel:
155-
self.cfg['parallel'] = new_parallel
162+
self.cfg[parallel_param] = new_parallel
156163
msg = "limiting parallelism to %s (was %s) for %s on %s to avoid out-of-memory failures during building/testing"
157164
print_msg(msg % (new_parallel, parallel, self.name, cpu_target), log=self.log)
158165

@@ -1273,6 +1280,9 @@ def set_maximum(parallel, max_value):
12731280
'*': (divide_by_factor, 2),
12741281
CPU_TARGET_A64FX: (set_maximum, 12),
12751282
},
1283+
'nodejs': {
1284+
CPU_TARGET_A64FX: (divide_by_factor, 2),
1285+
},
12761286
'MBX': {
12771287
'*': (divide_by_factor, 2),
12781288
},
@@ -1284,7 +1294,7 @@ def set_maximum(parallel, max_value):
12841294
CPU_TARGET_A64FX: (set_maximum, 8),
12851295
},
12861296
'Qt5': {
1287-
CPU_TARGET_A64FX: (divide_by_factor, 2),
1297+
CPU_TARGET_A64FX: (set_maximum, 8),
12881298
},
12891299
'ROOT': {
12901300
CPU_TARGET_A64FX: (divide_by_factor, 2),

0 commit comments

Comments
 (0)