-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set pipefail in wheel build scripts (#34)
This PR fixes up some CI scripts to actually fail if something goes wrong, as well as some other minor cleanup. Closes #32 --------- Co-authored-by: Bradley Dice <[email protected]>
- Loading branch information
1 parent
2e7e967
commit ce20b81
Showing
3 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2024, NVIDIA CORPORATION | ||
|
||
# Installs the latest CUDA Toolkit. | ||
# Supports CentOS 7 and Rocky Linux 8. | ||
|
||
yum update -y | ||
yum install -y epel-release | ||
|
||
OS_ID=$(. /etc/os-release; echo $ID) | ||
if [ "${OS_ID}" == "centos" ]; then | ||
yum install -y nvidia-driver-latest-dkms | ||
elif [ "${OS_ID}" == "rocky" ]; then | ||
yum install -y nvidia-driver | ||
else | ||
echo "Error: OS not detected as CentOS or Rocky Linux. Exiting." | ||
exit 1 | ||
fi | ||
|
||
yum install -y cuda-toolkit-12-3 |
This file contains 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