Skip to content

Commit

Permalink
set env MKLROOT in intel/mkl containers+add deps (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
theAeon authored Oct 16, 2023
1 parent 993400a commit 8c9f505
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions containers/intel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM fedora:38
COPY oneAPI.repo /etc/yum.repos.d

RUN dnf install -y \
intel-oneapi-mkl-2023.2.0 \
intel-oneapi-mkl-devel-2023.2.0 \
intel-oneapi-compiler-dpcpp-cpp-2023.2.1.x86_64 \
intel-oneapi-compiler-fortran-2023.2.1.x86_64

Expand Down Expand Up @@ -72,7 +72,7 @@ COPY r-check /usr/local/bin
# ------------------------------------------------------------------------------------
# Useful system packages

RUN dnf install -y pkg-config devscripts-checkbashisms qpdf tidy
RUN dnf install -y pkg-config devscripts-checkbashisms qpdf tidy procps

# ------------------------------------------------------------------------------------
# Check config
Expand Down
1 change: 1 addition & 0 deletions containers/intel/r-check
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! /bin/bash
set -a && . /opt/intel/oneapi/setvars.sh && set +a
set -e

checkdir=${1-/check}
Expand Down
10 changes: 8 additions & 2 deletions containers/mkl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ FROM fedora:38

COPY oneAPI.repo /etc/yum.repos.d

RUN dnf install -y intel-oneapi-mkl-2023.2.0
RUN dnf install -y intel-oneapi-mkl-devel-2023.2.0

# ------------------------------------------------------------------------------------
# Install pre-built R and requirements
Expand Down Expand Up @@ -66,7 +66,13 @@ COPY r-check /usr/local/bin
# ------------------------------------------------------------------------------------
# Useful system packages

RUN dnf install -y pkg-config devscripts-checkbashisms qpdf tidy
RUN dnf install -y pkg-config devscripts-checkbashisms qpdf tidy procps

# ------------------------------------------------------------------------------------
# Copy MKL environment

ENV SETVARS_ARGS --config=/opt/mklconfig.txt
COPY mklconfig.txt /opt/mklconfig.txt

# ------------------------------------------------------------------------------------
# Check config
Expand Down
2 changes: 2 additions & 0 deletions containers/mkl/mklconfig.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default=exclude
mkl=latest
1 change: 1 addition & 0 deletions containers/mkl/r-check
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! /bin/bash
set -a && . /opt/intel/oneapi/setvars.sh && set +a
set -e

checkdir=${1-/check}
Expand Down

0 comments on commit 8c9f505

Please sign in to comment.