-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
33 lines (24 loc) · 1.25 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ARG IMAGE="rocm_gpu:6.3"
FROM ${IMAGE}
ARG PELEC_BRANCH="development"
WORKDIR /opt/
ENV AMD_ARCH="gfx90a,gfx942" \
HIP_PLATFORM=amd
RUN git clone -b ${PELEC_BRANCH} --recursive https://github.com/AMReX-Combustion/pelec/ \
&& sed -i 's/defined(__HIP_PLATFORM_HCC__)/defined(__HIP_PLATFORM_HCC__) || defined(__HIP_PLATFORM_AMD__)/' /opt/pelec/Submodules/PelePhysics/Submodules/sundials/include/sundials/sundials_hip_policies.hpp \
&& cat /opt/pelec/Submodules/PelePhysics/Submodules/sundials/include/sundials/sundials_hip_policies.hpp \
&& cd pelec/Exec/RegTests/PMF \
&& export MODELS="drm19 dodecane_lu" \
&& for model in $MODELS; do \
echo $model \
&& make -j $(nproc) USE_HIP=TRUE USE_MPI=TRUE Chemistry_Model=$model TPLrealclean \
&& make -j $(nproc) USE_HIP=TRUE USE_MPI=TRUE Chemistry_Model=$model TPL \
&& make -j $(nproc) USE_HIP=TRUE USE_MPI=TRUE Chemistry_Model=$model realclean \
&& make -j $(nproc) USE_HIP=TRUE USE_MPI=TRUE Chemistry_Model=$model \
&& ls \
&& mv PeleC3d.hip.MPI.HIP.ex PeleC3d.hip.MPI.HIP.ex.$model; \
done
COPY ./benchmarks/. /opt/pelec/Exec/RegTests/PMF/.
RUN chmod -R 777 /opt/pelec/Exec/RegTests/PMF
WORKDIR /opt/pelec/Exec/RegTests/PMF
CMD ["/bin/bash"]