Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
a86c614
Add CUDA support to software_layer
ocaisa Dec 16, 2022
6c41b26
singularity install does not seem to install mksquashfs
ocaisa Dec 16, 2022
7d53b03
Trigger script test
ocaisa Dec 16, 2022
58357b9
Revert
ocaisa Dec 16, 2022
4b6654d
Use the right package name for squash-fs
ocaisa Dec 16, 2022
33ce584
Tidy up hooks
ocaisa Dec 16, 2022
f1cd893
Force creation of links
ocaisa Dec 16, 2022
06a9eaf
Install host_injections CUDA
ocaisa Dec 19, 2022
b4e80a1
Move comments to the right place
ocaisa Dec 19, 2022
2c86973
Reimplement `mkdir -p` reporting where permissions break down
ocaisa Feb 14, 2023
3909080
Merge branch 'main' into p7zip
ocaisa Feb 24, 2023
85c805c
Merge branch 'ocaisa-patch-2' into p7zip
ocaisa Feb 24, 2023
9590047
Be more agressive on catching errors
ocaisa Feb 24, 2023
1357f76
`${extra_args}` is actually multiple args not a single string
ocaisa Feb 27, 2023
8096c54
Update EESSI-pilot-install-software.sh
ocaisa Feb 27, 2023
ec31edf
Catching echo exit code instead of actual code
ocaisa Mar 1, 2023
0e99db5
Give a full path to the CUDA host injections script
ocaisa Mar 1, 2023
cd11792
Add checks for some whitelist entries for CUDA
ocaisa Mar 1, 2023
f514f81
Fix failing eb installation
ocaisa Mar 1, 2023
be326a1
Make sure we check space in the right places
ocaisa Mar 1, 2023
87c17a3
Merge branch 'main' of github.com:eessi/software-layer into p7zip
ocaisa Mar 2, 2023
103f5fa
Simply wrap `mkdir -p` for better error reporting
ocaisa Mar 3, 2023
f02e5f6
Merge branch 'p7zip' of github.com:ocaisa/software-layer into p7zip
ocaisa Mar 3, 2023
793ba29
Simply wrap `mkdir -p` for better error reporting
ocaisa Mar 3, 2023
c0a1247
Make CUDA version a variable
ocaisa Mar 3, 2023
5e82923
Use TOPDIR, be more descriptive
ocaisa Mar 3, 2023
8384b25
Add missing argument
ocaisa Mar 3, 2023
98fe2a7
Improve error messages in new bash function
ocaisa Mar 3, 2023
bbe7df2
Stick with return_code
ocaisa Mar 3, 2023
95dc245
Use realpath to be consistent with other scripts
ocaisa Mar 3, 2023
a1270f2
Wrong realpath flag
ocaisa Mar 3, 2023
aba486d
Wrong realpath flag
ocaisa Mar 3, 2023
d2d1fc3
Fix typo
ocaisa Mar 3, 2023
562e94b
Always add the rebuild option if we get to the point where we actuall…
ocaisa Mar 3, 2023
b4ae5f0
Expose CUDA_TEMP_DIR
ocaisa Mar 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions EESSI-pilot-install-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,52 @@ fi
$EB SciPy-bundle-2021.05-foss-2021a.eb --robot
check_exit_code $? "${ok_msg}" "${fail_msg}"

# CUDA support

cuda_version="11.3.1"

# Need recent version of EasyBuild
echo ">> Installing EasyBuild 4.7.0..."
ok_msg="EasyBuild v4.7.0 installed"
fail_msg="EasyBuild v4.7.0 failed to install"
$EB --from-pr 17065 --include-easyblocks-from-pr 2893 --try-amend=use_pip=1
check_exit_code $? "${ok_msg}" "${fail_msg}"

LMOD_IGNORE_CACHE=1 module swap EasyBuild/4.7.0
check_exit_code $? "Swapped to EasyBuild/4.7.0" "Couldn't swap to EasyBuild/4.7.0"

# install p7zip (to be able to unpack RPMs)
p7zip_ec="p7zip-17.04-GCCcore-10.3.0.eb"
echo ">> Installing $p7zip_ec..."
ok_msg="$p7zip_ec installed, off to a good (?) start!"
fail_msg="Failed to install $p7zip_ec, woopsie..."
$EB $p7zip_ec --robot
check_exit_code $? "${ok_msg}" "${fail_msg}"

# install CUDA (uses eb_hooks.py to only install runtime)
cuda_ec="CUDA-${cuda_version}.eb"
echo ">> Installing $cuda_ec..."
ok_msg="$cuda_ec installed, off to a good (?) start!"
fail_msg="Failed to install $cuda_ec, woopsie..."
$EB $cuda_ec --robot
check_exit_code $? "${ok_msg}" "${fail_msg}"

# Add the host_injections CUDA so we can actually build CUDA apps
# (which unbreaks the symlinks from the runtime installation)
echo ">> Re-installing CUDA $cuda_version under host_injections (to un-break symlinks in EESSI installation)..."
"${TOPDIR}"/gpu_support/cuda_utils/install_cuda_host_injections.sh ${cuda_version}
ok_msg="CUDA $cuda_version (re)installed under host_injections!"
fail_msg="Failed to install CUDA $cuda_version under host_injections, woopsie..."
check_exit_code $? "${ok_msg}" "${fail_msg}"

# install CUDA samples (requires EESSI support for CUDA)
cuda_samples_ec="CUDA-Samples-11.3-GCC-10.3.0-CUDA-11.3.1.eb"
echo ">> Installing $cuda_samples_ec..."
ok_msg="$cuda_samples_ec installed, off to a good (?) start!"
fail_msg="Failed to install $cuda_samples_ec, woopsie..."
$EB $cuda_samples_ec --robot --from-pr=16914
check_exit_code $? "${ok_msg}" "${fail_msg}"

### add packages here

echo ">> Creating/updating Lmod cache..."
Expand Down
Loading