Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{2023.06}[foss/2023a] gmsh v4.12.2, basemap v1.39, geopandas v0.14.2 #736

Merged
merged 14 commits into from
Oct 2, 2024
Merged
16 changes: 10 additions & 6 deletions create_tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,17 @@ for subdir in ${cpu_arch_subdir} ${cpu_arch_subdir}/accel/${accel_subdir}; do
done

# add a bit debug output
echo "wrote file list to ${files_list}"
[ -r ${files_list} ] && cat ${files_list}
echo "wrote module file list to ${module_files_list}"
[ -r ${module_files_list} ] && cat ${module_files_list}
if [ -r ${files_list} ]; then
echo "wrote file list to ${files_list}"
cat ${files_list}
fi
if [ -r ${module_files_list} ]; then
echo "wrote module file list to ${module_files_list}"
cat ${module_files_list}

# Copy the module files list to current workindg dir for later use in the test step
cp ${module_files_list} ${current_workdir}/module_files.list.txt
# Copy the module files list to current workindg dir for later use in the test step
cp ${module_files_list} ${current_workdir}/module_files.list.txt
fi

topdir=${cvmfs_repo}/versions/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ easyconfigs:
- GDB-13.2-GCCcore-12.3.0.eb
- tmux-3.3a-GCCcore-12.3.0.eb
- Vim-9.1.0004-GCCcore-12.3.0.eb
- gmsh-4.12.2-foss-2023a.eb
- basemap-1.3.9-foss-2023a.eb
- geopandas-0.14.2-foss-2023a.eb
21 changes: 20 additions & 1 deletion eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ def parse_hook_casacore_disable_vectorize(ec, eprefix):
):
cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR')
if cpu_target == CPU_TARGET_NEOVERSE_V1:
if not hasattr(ec, 'toolchainopts'):
# Make sure the toolchainopts key exists, and the value is a dict,
# before we add the option to disable vectorization
if 'toolchainopts' not in ec or ec['toolchainopts'] is None:
ec['toolchainopts'] = {}
ec['toolchainopts']['vectorize'] = False
print_msg("Changed toochainopts for %s: %s", ec.name, ec['toolchainopts'])
Expand Down Expand Up @@ -301,6 +303,22 @@ def parse_hook_ucx_eprefix(ec, eprefix):
raise EasyBuildError("UCX-specific hook triggered for non-UCX easyconfig?!")


def parse_hook_freeimage_aarch64(ec, *args, **kwargs):
"""
Make sure to build with -fPIC on ARM to avoid
https://github.com/EESSI/software-layer/pull/736#issuecomment-2373261889
"""
if ec.name == 'FreeImage' and ec.version in ('3.18.0',):
if os.getenv('EESSI_CPU_FAMILY') == 'aarch64':
# Make sure the toolchainopts key exists, and the value is a dict,
# before we add the option to enable PIC and disable PNG_ARM_NEON_OPT
if 'toolchainopts' not in ec or ec['toolchainopts'] is None:
ec['toolchainopts'] = {}
ec['toolchainopts']['pic'] = True
ec['toolchainopts']['extra_cflags'] = '-DPNG_ARM_NEON_OPT=0'
print_msg("Changed toolchainopts for %s: %s", ec.name, ec['toolchainopts'])


def parse_hook_lammps_remove_deps_for_aarch64(ec, *args, **kwargs):
"""
Remove x86_64 specific dependencies for the CI and missing installations to pass on aarch64
Expand Down Expand Up @@ -803,6 +821,7 @@ def inject_gpu_property(ec):
'casacore': parse_hook_casacore_disable_vectorize,
'CGAL': parse_hook_cgal_toolchainopts_precise,
'fontconfig': parse_hook_fontconfig_add_fonts,
'FreeImage': parse_hook_freeimage_aarch64,
'grpcio': parse_hook_grpcio_zlib,
'LAMMPS': parse_hook_lammps_remove_deps_for_aarch64,
'CP2K': parse_hook_CP2K_remove_deps_for_aarch64,
Expand Down