Skip to content

Commit e3088de

Browse files
committed
NVCC 12.6
1 parent c6d7a48 commit e3088de

File tree

3 files changed

+22
-85
lines changed

3 files changed

+22
-85
lines changed

.github/workflows/cuda.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
jobs:
17-
# Ref.:
18-
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/ubuntu18.04/10.1/base/Dockerfile
19-
# https://github.com/ComputationalRadiationPhysics/picongpu/blob/0.5.0/share/picongpu/dockerfiles/ubuntu-1604/Dockerfile
20-
# https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/
2117
build_nvcc:
22-
name: NVCC 11.3 SP
18+
name: NVCC 12.6 SP
2319
runs-on: ubuntu-24.04
2420
if: github.event.pull_request.draft == false
2521
env:
@@ -33,7 +29,7 @@ jobs:
3329
python-version: '3.x'
3430
- name: install dependencies
3531
run: |
36-
.github/workflows/dependencies/nvcc11-3.sh
32+
.github/workflows/dependencies/nvcc.sh 12.6
3733
- name: CCache Cache
3834
uses: actions/cache@v4
3935
with:
@@ -100,14 +96,14 @@ jobs:
10096
# make sure legacy build system continues to build, i.e., that we don't forget
10197
# to add new .cpp files
10298
build_nvcc_gnumake:
103-
name: NVCC 11.8.0 GNUmake
99+
name: NVCC 12.6 GNU Make
104100
runs-on: ubuntu-24.04
105101
if: github.event.pull_request.draft == false
106102
steps:
107103
- uses: actions/checkout@v4
108104
- name: install dependencies
109105
run: |
110-
.github/workflows/dependencies/nvcc11-8.sh
106+
.github/workflows/dependencies/nvcc.sh 12.6
111107
- name: CCache Cache
112108
uses: actions/cache@v4
113109
with:

.github/workflows/dependencies/nvcc11-3.sh .github/workflows/dependencies/nvcc.sh

+18-16
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,34 @@ sudo apt-get install -y \
2929
# ccache
3030
$(dirname "$0")/ccache.sh
3131

32-
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb
32+
# parse version number from command line argument
33+
VERSION_DOTTED=${1-12.6} && VERSION_DASHED=$(sed 's/\./-/' <<< ${VERSION_DOTTED})
34+
35+
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
3336
sudo dpkg -i cuda-keyring_1.0-1_all.deb
3437

3538
sudo apt-get update
3639
sudo apt-get install -y \
37-
cuda-command-line-tools-11-3 \
38-
cuda-compiler-11-3 \
39-
cuda-cupti-dev-11-3 \
40-
cuda-minimal-build-11-3 \
41-
cuda-nvml-dev-11-3 \
42-
cuda-nvtx-11-3 \
43-
libcufft-dev-11-3 \
44-
libcurand-dev-11-3 \
45-
libcusparse-dev-11-3
46-
sudo ln -s cuda-11.3 /usr/local/cuda
40+
cuda-command-line-tools-${VERSION_DASHED} \
41+
cuda-compiler-${VERSION_DASHED} \
42+
cuda-cupti-dev-${VERSION_DASHED} \
43+
cuda-minimal-build-${VERSION_DASHED} \
44+
cuda-nvml-dev-${VERSION_DASHED} \
45+
cuda-nvtx-${VERSION_DASHED} \
46+
libcufft-dev-${VERSION_DASHED} \
47+
libcurand-dev-${VERSION_DASHED} \
48+
libcusparse-dev-${VERSION_DASHED}
49+
sudo ln -s cuda-${VERSION_DOTTED} /usr/local/cuda
4750

4851
# if we run out of temporary storage in CI:
49-
#du -sh /usr/local/cuda-11.3
52+
#du -sh /usr/local/cuda-${VERSION_DOTTED}
5053
#echo "+++ REDUCING CUDA Toolkit install size +++"
51-
#sudo rm -rf /usr/local/cuda-11.3/targets/x86_64-linux/lib/libcu{fft,pti,rand}_static.a
52-
#sudo rm -rf /usr/local/cuda-11.3/targets/x86_64-linux/lib/libnvperf_host_static.a
53-
#du -sh /usr/local/cuda-11.3/
54+
#sudo rm -rf /usr/local/cuda-${VERSION_DOTTED}/targets/x86_64-linux/lib/libcu{fft,pti,rand}_static.a
55+
#sudo rm -rf /usr/local/cuda-${VERSION_DOTTED}/targets/x86_64-linux/lib/libnvperf_host_static.a
56+
#du -sh /usr/local/cuda-${VERSION_DOTTED}/
5457
#df -h
5558

5659
# cmake-easyinstall
57-
#
5860
sudo curl -L -o /usr/local/bin/cmake-easyinstall https://raw.githubusercontent.com/ax3l/cmake-easyinstall/main/cmake-easyinstall
5961
sudo chmod a+x /usr/local/bin/cmake-easyinstall
6062
export CEI_SUDO="sudo"

.github/workflows/dependencies/nvcc11-8.sh

-61
This file was deleted.

0 commit comments

Comments
 (0)