Skip to content

Commit

Permalink
add dockerfiles for cuda11/12
Browse files Browse the repository at this point in the history
  • Loading branch information
rrsettgast committed Oct 21, 2023
1 parent 46153d1 commit 6952ce5
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 7 deletions.
16 changes: 16 additions & 0 deletions docker/ubi8-cuda11/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ARG TMP_DIR=/tmp
FROM nvidia/cuda:11.8.0-devel-ubi8 AS ubi8-cuda11


# install required packages
RUN yum install -y \
curl \
git \
make \
clang \
clang-tools-extra \
python3

# Installing latest CMake version available on Lassen
ARG CMAKE_VERSION=3.23.5
RUN curl -fsSL -k https://cmake.org/files/v${CMAKE_VERSION%.[0-9]*}/cmake-${CMAKE_VERSION}-linux-x86_64.tar.gz | tar --directory=/usr/local --strip-components=1 -xzf -
17 changes: 17 additions & 0 deletions docker/ubi8-cuda12/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ARG TMP_DIR=/tmp
FROM nvidia/cuda:12.2.2-devel-ubi8 AS ubi8-cuda12


# install required packages
RUN yum install -y \
curl \
git \
make \
clang \
clang-tools-extra \
python3

# Installing latest CMake version available on Lassen
ARG CMAKE_VERSION=3.23.5
RUN curl -fsSL -k https://cmake.org/files/v${CMAKE_VERSION%.[0-9]*}/cmake-${CMAKE_VERSION}-linux-x86_64.tar.gz | tar --directory=/usr/local --strip-components=1 -xzf -

3 changes: 0 additions & 3 deletions docker/ubi8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@ RUN yum install -y \

ARG CMAKE_VERSION=3.23.5
RUN curl -fsSL -k https://cmake.org/files/v${CMAKE_VERSION%.[0-9]*}/cmake-${CMAKE_VERSION}-linux-x86_64.tar.gz | tar --directory=/usr/local --strip-components=1 -xzf -

# ENV CC=/opt/rh/devtoolset-12/root/usr/bin/gcc \
# CXX=/opt/rh/devtoolset-12/root/usr/bin/g++
8 changes: 4 additions & 4 deletions hostconfigs/apple/macOS_base.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ set(CMAKE_C_COMPILER "/usr/bin/clang" CACHE PATH "")
set(CMAKE_CXX_COMPILER "/usr/bin/clang++" CACHE PATH "")
set(ENABLE_FORTRAN OFF CACHE BOOL "" FORCE)

set(ENABLE_MPI ON CACHE PATH "")
set(MPI_C_COMPILER "${HOMEBREW_DIR}/bin/mpicc" CACHE PATH "")
set(MPI_CXX_COMPILER "${HOMEBREW_DIR}/bin/mpicxx" CACHE PATH "")
set(MPIEXEC "${HOMEBREW_DIR}/bin/mpirun" CACHE PATH "")
set(ENABLE_MPI OFF CACHE PATH "")
# set(MPI_C_COMPILER "${HOMEBREW_DIR}/bin/mpicc" CACHE PATH "")
# set(MPI_CXX_COMPILER "${HOMEBREW_DIR}/bin/mpicxx" CACHE PATH "")
# set(MPIEXEC "${HOMEBREW_DIR}/bin/mpirun" CACHE PATH "")

set(ENABLE_GTEST_DEATH_TESTS ON CACHE BOOL "" FORCE)

Expand Down

0 comments on commit 6952ce5

Please sign in to comment.