Skip to content

Commit 0efcc53

Browse files
committed
add compile script
1 parent c162334 commit 0efcc53

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

udocker-files/compile-gromacs-gpu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ module load python
1313
cd $TUT_DIR
1414

1515
echo "###############################"
16-
udocker run -v=$TUT_DIR/gromacs:/home/user -w=/home/user grom_gpu /home/user/compile.sh
16+
udocker run -v=$TUT_DIR/gromacs-gpu:/home/user -w=/home/user grom_gpu /home/user/compile.sh
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
PATH=$PATH:/usr/local/gromacs/bin
3+
LD_LIBRARY_PATH=/usr/local/gromacs/lib
4+
gromacs_ver=2025.4
5+
6+
cd /tmp
7+
wget --no-check-certificate https://ftp.gromacs.org/gromacs/gromacs-${gromacs_ver}.tar.gz
8+
tar zxvf gromacs-${gromacs_ver}.tar.gz
9+
cd gromacs-${gromacs_ver}
10+
mkdir -p /tmp/gromacs-${gromacs_ver}/build
11+
cd /tmp/gromacs-${gromacs_ver}/build
12+
cmake .. -DGMX_BUILD_OWN_FFTW=ON -DGMX_OPENMP=ON -DGMX_GPU=CUDA
13+
make \
14+
make install \
15+
rm -rf /tmp/gromacs-${gromacs_ver}*

0 commit comments

Comments
 (0)