From e29c0099b81dca649c60ab9ed037bde801967cde Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Thu, 11 Jul 2024 20:21:59 +0200 Subject: [PATCH] Add magma library --- Script/Rocky.Pre.CUDA.Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Script/Rocky.Pre.CUDA.Dockerfile b/Script/Rocky.Pre.CUDA.Dockerfile index 7bd2a5236..d1e24b16a 100644 --- a/Script/Rocky.Pre.CUDA.Dockerfile +++ b/Script/Rocky.Pre.CUDA.Dockerfile @@ -17,6 +17,12 @@ RUN mkdir vtk-build && cd vtk-build && \ cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF ./VTK-9.2.6 && \ make install -j"$(nproc)" && cd .. && rm -r vtk-build +RUN dnf install -y procps +RUN mkdir magma-build && cd magma-build && \ + wget -q https://icl.utk.edu/projectsfiles/magma/downloads/magma-2.8.0.tar.gz && tar xf magma-2.8.0.tar.gz && \ + source /opt/intel/oneapi/setvars.sh && cmake -DCMAKE_BUILD_TYPE=Release -DGPU_TARGET="Turing Ampere Hopper" -DBUILD_SHARED_LIBS=OFF -DFORTRAN_CONVENTION="-DADD_" -DBLA_STATIC=ON -DBLA_VENDOR="Intel10_64lp" ./magma-2.8.0 && \ + make install -j"$(nproc)" && cd .. && rm -r magma-build + ARG USERNAME=nonroot ARG USER_UID=1000 ARG USER_GID=$USER_UID