Skip to content

Commit

Permalink
docker: switch nvidia build to bash for hpcx
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed May 1, 2024
1 parent fe4ec46 commit a400992
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/Dockerfile.nvidia
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ ARG arch="nvc"
########################################################################
FROM ubuntu:22.04 as sdk-base

SHELL ["/bin/bash", "-c"]

ENV DEBIAN_FRONTEND noninteractive

# Install python
Expand Down Expand Up @@ -137,7 +139,7 @@ FROM sdk-base as nvc
ADD docker/nvdashboard.json /app/nvdashboard.json

# mpi4py
ENV MPI4PY_FLAGS='. $HPCSDK_HOME/comm_libs/hpcx/latest/hpcx-init.sh && hpcx_load && CC=nvc CFLAGS="-noswitcherror -tp=px"'
ENV MPI4PY_FLAGS='source $HPCSDK_HOME/comm_libs/hpcx/latest/hpcx-init.sh && hpcx_load && CC=nvc CFLAGS="-noswitcherror -tp=px"'

ENV DEVITO_ARCH="nvc"
ENV DEVITO_PLATFORM="nvidiaX"
Expand Down

0 comments on commit a400992

Please sign in to comment.