-
Notifications
You must be signed in to change notification settings - Fork 50
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
install CUDA under host_injections #410
install CUDA under host_injections #410
Conversation
Instance
|
I believe all the changes for software.eessi.io have been made in this PR, but still need to test... |
…the required GPU components in host_injections. The EESSI-install-software.sh has been modified to run install_scripts.sh early on and then run the actual installed scripts to install a full cuda SDK and drivers. This should enable building and using CUDA software anywhere down the line in this same environment
This needs to actually be deployed, but the deployment is coming in #434 so I think it's ok to merge as is |
@@ -187,6 +187,22 @@ fi | |||
# assume there's only one diff file that corresponds to the PR patch file | |||
pr_diff=$(ls [0-9]*.diff | head -1) | |||
|
|||
# install any additional required scripts | |||
# order is important: these are needed to install a full CUDA SDK in host_injections | |||
install_scripts_changed=$(cat ${pr_diff} | grep '^+++' | cut -f2 -d' ' | sed 's@^[a-z]/@@g' | grep '^install_scripts.sh$' > /dev/null; echo $?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@casparvl I messed up a little by merging this as now the file checked here will not be updated in the other PR, and as a result the scripts will not get installed. It doesn't matter too much as I think the use of $pr_diff
is overkill here. I think we should always run the installer script and instead of using cp
use cp -u
, that could be implemented as part of #434
Also, this was a little wrong anyway, as it doesn't check if the scripts installed by the installer have changed
# Install full CUDA SDK in host_injections | ||
# Hardcode this for now, see if it works | ||
# TODO: We should make a nice yaml and loop over all CUDA versions in that yaml to figure out what to install | ||
${EESSI_CVMFS_REPO}/gpu_support/nvidia/install_cuda_host_injections.sh 12.1.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, I really messed up here...the arguments are incorrect!
|
||
# Copy files from this directory into the prefix | ||
# To be on the safe side, we dont do recursive copies, but we are explicitely copying each individual file we want to add | ||
for file in install_cuda_host_injections.sh link_nvidia_host_injections.sh; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script name is wrong here
…mory_per_node_option_1 Use default memory option during reframe tests
Replicates #368 for the 2023.06-pilot repo