Skip to content

Commit

Permalink
Ubuntu 24.04で、cudaのインストールできるように。
Browse files Browse the repository at this point in the history
パッケージの一部のみを導入するようにする。
  • Loading branch information
rigaya committed May 1, 2024
1 parent 35c0e04 commit 9398661
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
run: |
docker build --build-arg LOCAL_USER_ID=${{ steps.prep.outputs.local_user_id }} --build-arg LOCAL_GROUP_ID=${{ steps.prep.outputs.local_group_id }} --tag ${{ steps.prep.outputs.tagged_image }} --platform linux/${{ matrix.arch }} --file ${{ env.DOCKER_FILE }} ./
docker run -dit --rm -v ${{ steps.prep.outputs.output_dir }}:/output -u "$(id -u):$(id -g)" --name build_pkg ${{ steps.prep.outputs.tagged_image }}
docker exec build_pkg ./configure --extra-cxxflags="-I./AviSynthPlus/avs_core/include -I./vapoursynth/include"
docker exec build_pkg ./configure --extra-cxxflags="-I./AviSynthPlus/avs_core/include -I./vapoursynth/include" --extra-cudaldflags="-L/usr/local/cuda/targets/${{ matrix.arch }}-linux/lib/stubs"
docker exec build_pkg make -j${{ steps.prep.outputs.nproc }}
docker exec build_pkg ./nvencc --version
docker exec build_pkg ./check_options.py
Expand Down
12 changes: 7 additions & 5 deletions docker/docker_ubuntu2404_cuda11
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM ubuntu:24.04

ARG DEBIAN_FRONTEND=noninteractive \
OSVER=ubuntu2404 \
OSVER=ubuntu2204 \
LOCAL_USER_ID=1000 \
LOCAL_GROUP_ID=1000 \
CUDA_DEB_URL=https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-repo-ubuntu2204-11-8-local_11.8.0-520.61.05-1_amd64.deb \
CUDA_DEB_NAME=cuda-repo-ubuntu2204-11-8-local_11.8.0-520.61.05-1_amd64.deb \
CUDA_GPG_PATH=/var/cuda-repo-ubuntu2204-11-8-local
CUDA_VER_MAJOR=12 \
CUDA_VER_MINOR=4 \
CUDA_DEB_URL=https://developer.download.nvidia.com/compute/cuda/12.4.1/local_installers/cuda-repo-ubuntu2204-12-4-local_12.4.1-550.54.15-1_amd64.deb \
CUDA_DEB_NAME=cuda-repo-ubuntu2204-12-4-local_12.4.1-550.54.15-1_amd64.deb \
CUDA_GPG_PATH=/var/cuda-repo-ubuntu2204-12-4-local

RUN apt update \
&& apt-get install -y \
Expand All @@ -33,7 +35,7 @@ RUN apt update \
&& dpkg -i ${CUDA_DEB_NAME} \
&& cp ${CUDA_GPG_PATH}/cuda-*-keyring.gpg /usr/share/keyrings/ \
&& apt-get update \
&& apt-get -y install cuda \
&& apt-get -y install cuda-compiler-${CUDA_VER_MAJOR}-${CUDA_VER_MINOR} cuda-cudart-dev-${CUDA_VER_MAJOR}-${CUDA_VER_MINOR} cuda-driver-dev-${CUDA_VER_MAJOR}-${CUDA_VER_MINOR} cuda-nvrtc-dev-${CUDA_VER_MAJOR}-${CUDA_VER_MINOR} libcurand-dev-${CUDA_VER_MAJOR}-${CUDA_VER_MINOR} libnpp-dev-${CUDA_VER_MAJOR}-${CUDA_VER_MINOR} cuda-nvml-dev-${CUDA_VER_MAJOR}-${CUDA_VER_MINOR} \
&& rm -f ${CUDA_DEB_NAME} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit 9398661

Please sign in to comment.