-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7657bba
commit f96bdbc
Showing
7 changed files
with
66 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
#SBATCH --job-name=prep_gromacs | ||
#SBATCH --ntasks=1 | ||
#SBATCH --partition=hpc | ||
#SBATCH --output=gromacs-prep-%j.out | ||
#SBATCH --error=gromacs-prep-%j.err | ||
|
||
export TUT_DIR=$HOME/udocker-tutorial | ||
export PATH=$HOME/udocker-1.3.10/udocker:$PATH | ||
cd $TUT_DIR | ||
export UDOCKER_DIR=$TUT_DIR/.udocker | ||
module load python | ||
|
||
echo "###############################" | ||
hostname | ||
echo ">> udocker command" | ||
which udocker | ||
echo | ||
echo ">> List images" | ||
udocker images | ||
echo | ||
echo ">> Create container" | ||
udocker create --name=grom_mpi gromacs-mpi | ||
echo | ||
echo ">> Set execmode to F3" | ||
udocker setup --execmode=F3 grom_mpi | ||
echo | ||
echo ">> List containers" | ||
udocker ps -m -p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
#SBATCH --job-name=run_gromacs_mpi | ||
#SBATCH --ntasks=16 | ||
#SBATCH --nodes=2 | ||
#SBATCH --ntasks-per-core=1 | ||
#SBATCH --ntasks-per-node=8 | ||
#SBATCH --partition=hpc | ||
#SBATCH --output=gromacs-mpi-%j.out | ||
#SBATCH --error=gromacs-mpi-%j.err | ||
|
||
export TUT_DIR=$HOME/udocker-tutorial | ||
export PATH=$HOME/udocker-1.3.10/udocker:$PATH | ||
export UDOCKER_DIR=$TUT_DIR/.udocker | ||
export OUT_NAME=output/ud-tutorial | ||
export TRR=${OUT_NAME}.trr | ||
export XTC=${OUT_NAME}.xtc | ||
export EDR=${OUT_NAME}.edr | ||
export LOG=${OUT_NAME}.log | ||
module load python/3.10.13 | ||
module load gcc11/openmpi/4.1.4 | ||
cd $TUT_DIR | ||
module list | ||
|
||
echo "###############################" | ||
srun --mpi=pmi2 udocker run -v=$TUT_DIR/gromacs:/home/user -w=/home/user grom_mpi \ | ||
gmx mdrun -s /home/user/input/md.tpr -e $EDR -x $XTC -o $TRR -g $LOG \ | ||
-maxh 0.50 -resethway -noconfout -nsteps 10000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters