Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
technical:recipes:gromacs-plumed [2024-05-12 14:33] – [Checking the definition file] bkang | technical:recipes:gromacs-plumed [2024-05-12 15:03] (current) – [Scaling] bkang | ||
---|---|---|---|
Line 119: | Line 119: | ||
vpkg_require cmake/ | vpkg_require cmake/ | ||
+ | |||
+ | PREFIX=" | ||
+ | |||
+ | CPU_GMX_SIMD=AVX2_256 | ||
+ | |||
+ | BASE_BUILD_FLAGS=" | ||
+ | -DCMAKE_BUILD_TYPE=Release | ||
+ | -DGMX_SIMD=${CPU_GMX_SIMD} | ||
+ | -DGMX_FFT_LIBRARY=mkl | ||
+ | -DMKL_MPI=openmpi | ||
+ | -DBUILD_SHARED_LIBS=OFF | ||
+ | -DGMX_PREFER_STATIC_LIBS=ON | ||
+ | " | ||
+ | # BASE_BUILD_FLAGS=" | ||
+ | # -DMKL_INCLUDE_DIR=$MKLROOT/ | ||
+ | # -DMKL_LIBRARIES=-mkl=sequential | ||
+ | #" | ||
+ | |||
+ | build_variant() | ||
+ | { | ||
+ | local DBL=$1 MPI=$2 | ||
+ | local build_dir="" | ||
+ | local build_flags="" | ||
+ | |||
+ | if [ $DBL -ne 0 ]; then | ||
+ | build_dir=" | ||
+ | build_flags=" | ||
+ | else | ||
+ | build_dir=" | ||
+ | build_flags=" | ||
+ | fi | ||
+ | if [ $MPI -eq 0 ]; then | ||
+ | build_dir=" | ||
+ | build_flags=" | ||
+ | CC=icx CXX=icpx FC=ifx | ||
+ | else | ||
+ | build_dir=" | ||
+ | build_flags=" | ||
+ | CC=mpicc CXX=mpicxx FC=mpifort | ||
+ | fi | ||
+ | [ -d " | ||
+ | mkdir " | ||
+ | CC=$CC CXX=$CXX FC=$FC \ | ||
+ | cmake \ | ||
+ | -DCMAKE_INSTALL_PREFIX=" | ||
+ | $BASE_BUILD_FLAGS $build_flags \ | ||
+ | ../.. | ||
+ | if [ $? -eq 0 ]; then | ||
+ | make -j 20 | ||
+ | if [ $? -eq 0 ]; then | ||
+ | make install | ||
+ | fi | ||
+ | fi | ||
+ | popd | ||
+ | } | ||
+ | |||
+ | ## | ||
+ | ## SYCL only supports single precision. | ||
+ | ## | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | build_variant 1 1 | ||
+ | |||
+ | </ | ||
+ | |||
+ | <file make SWMGR-build.sh.caviness> | ||
+ | #!/bin/bash -l | ||
+ | |||
+ | vpkg_require cmake/ | ||
PREFIX=" | PREFIX=" | ||
Line 230: | Line 301: | ||
The '' | The '' | ||
<code yaml> | <code yaml> | ||
- | Gromacs_Plumed: | + | gromacs-plumed: |
prefix: / | prefix: / | ||
description: | description: | ||
url: " | url: " | ||
+ | | ||
+ | default-version: | ||
| | ||
versions: | versions: | ||
Line 253: | Line 326: | ||
<file yaml gromacs-plumed.vpkg_yaml.darwin> | <file yaml gromacs-plumed.vpkg_yaml.darwin> | ||
- | Gromacs_Plumed: | + | gromacs-plumed: |
prefix: / | prefix: / | ||
description: | description: | ||
url: " | url: " | ||
+ | | ||
+ | default-version: | ||
| | ||
versions: | versions: | ||
Line 267: | Line 342: | ||
<file yaml gromacs-plumed.vpkg_yaml.caviness> | <file yaml gromacs-plumed.vpkg_yaml.caviness> | ||
- | Gromacs_Plumed: | + | gromacs-plumed: |
prefix: / | prefix: / | ||
description: | description: | ||
url: " | url: " | ||
| | ||
+ | default-version: | ||
+ | | ||
versions: | versions: | ||
" | " | ||
Line 288: | Line 365: | ||
[user@login00.darwin ~]$ vpkg_check " | [user@login00.darwin ~]$ vpkg_check " | ||
/ | / | ||
- | [Gromacs_Plumed] { | + | [gromacs-plumed] { |
contexts: all | contexts: all | ||
actions: { | actions: { | ||
Line 297: | Line 374: | ||
prefix: / | prefix: / | ||
source file: / | source file: / | ||
- | default version: | + | default version: |
versions: { | versions: { | ||
- | [Gromacs_Plumed/v2022.5] { | + | [gromacs-plumed/v2022.5] { |
contexts: all | contexts: all | ||
dependencies: | dependencies: | ||
Line 321: | Line 398: | ||
==== Runtime environment ==== | ==== Runtime environment ==== | ||
- | To load **quantum-espresso** 7.3 into the runtime environment, | + | To load **Gromacs_Plumed** v2022.5 into the runtime environment, |
<code bash> | <code bash> | ||
- | [user@login00.darwin ~]$ vpkg_require | + | [user@login00.darwin ~]$ vpkg_require |
Adding dependency `binutils/ | Adding dependency `binutils/ | ||
Adding dependency `gcc/ | Adding dependency `gcc/ | ||
Line 329: | Line 406: | ||
Adding dependency `ucx/ | Adding dependency `ucx/ | ||
Adding dependency `openmpi/ | Adding dependency `openmpi/ | ||
- | Adding package `quantum-espresso/v7.3` to your environment | + | Adding package `gromacs-plumed/v2022.5` to your environment |
- | [user@login00.darwin ~]$ which pw.x | + | [user@login00.darwin ~]$ which gmx_mpi_d |
- | ~/sw/quantum-espresso/v7.3/bin/pw.x | + | ~/sw/Gromacs_Plumed/Gromacs/ |
</ | </ | ||
===== Scaling ===== | ===== Scaling ===== | ||
- | This is the wall time for the structure relaxation | + | This is the wall time for MD run of 41057 atom, and nsteps=10000 |
- | {{: | + | {{: |