Reorganising build.gradle for CUDA 12

Signed-off-by: brian <brian@brutex.de>
CUDA12
Brian Rosenberger 2023-08-28 14:20:06 +02:00
parent 97bcda699d
commit dc2917857b
1 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,7 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu20.04
ENV OS=ubuntu2004 ENV OS=ubuntu2004
ENV cudnn_version=8.9.4.25 ENV cudnn_version=8.9.4.25
ENV cuda_version=cuda12.2 ENV cuda_version=cuda12.2
ENV cmake_version=3.27.4
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y wget software-properties-common RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y wget software-properties-common
@ -24,9 +25,9 @@ RUN apt-get update && apt-get upgrade -y && \
#RUN wget https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2.tar.gz && \ #RUN wget https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2.tar.gz && \
# tar -xvf cmake-3.24.2.tar.gz && cd cmake-3.24.2 && \ # tar -xvf cmake-3.24.2.tar.gz && cd cmake-3.24.2 && \
# ./bootstrap && make && make install # ./bootstrap && make && make install
RUN wget -nv https://github.com/Kitware/CMake/releases/download/v3.27.2/cmake-3.27.2-linux-x86_64.sh && \ RUN wget -nv https://github.com/Kitware/CMake/releases/download/v${cmake_version}/cmake-${cmake_version}-linux-x86_64.sh && \
mkdir /opt/cmake && sh ./cmake-3.27.2-linux-x86_64.sh --skip-license --prefix=/opt/cmake && ln -s /opt/cmake/bin/cmake /usr/bin/cmake && \ mkdir /opt/cmake && sh ./cmake-${cmake_version}-linux-x86_64.sh --skip-license --prefix=/opt/cmake && ln -s /opt/cmake/bin/cmake /usr/bin/cmake && \
rm cmake-3.27.2-linux-x86_64.sh rm cmake-${cmake_version}-linux-x86_64.sh
RUN ln -s /usr/bin/make /usr/bin/gmake RUN ln -s /usr/bin/make /usr/bin/gmake