-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
40 lines (32 loc) · 1.11 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
34
35
36
37
38
39
ARG IMAGE="rocm_gpu:6.3"
FROM ${IMAGE}
ARG GROMACS_BRANCH="4947-hip-feature-enablement"
ARG MPI_ENABLED="off"
# Installing Gromnacs - HIP
RUN git clone -b ${GROMACS_BRANCH} https://gitlab.com/gromacs/gromacs.git \
&& cd gromacs \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release \
-DGMX_BUILD_OWN_FFTW=ON \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DGMX_MPI=${OMPI_ENABLED} \
-DGMX_HIP_TARGET_ARCH=${GPU_TARGET} \
-DGMX_GPU=HIP \
-DREGRESSIONTEST_DOWNLOAD=OFF \
.. \
&& make -j $(nproc) \
&& make install \
&& rm -rf /tmp/*
COPY benchmark /benchmarks
RUN chmod -R g+w,o+w /benchmarks
ENV GMX_ENABLE_DIRECT_GPU_COMM=1 \
GMX_FORCE_UPDATE_DEFAULT_GPU=1 \
ROC_ACTIVE_WAIT_TIMEOUT=0 \
AMD_DIRECT_DISPATCH=1 \
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/gromacs/lib/ \
PATH=/benchmarks/:/usr/local/gromacs/bin:$PATH
# GPL -- need to include link to source code
RUN echo "echo Gromacs - HIP source code located at https://gitlab.com/gromacs/gromacs.git " >> /etc/profile.d/gromacs.sh
CMD ["/bin/bash"]