technical:recipes:gromacs-plumed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
technical:recipes:gromacs-plumed [2024-05-12 14:46] – [Runtime environment] bkangtechnical:recipes:gromacs-plumed [2024-05-12 15:03] (current) – [Scaling] bkang
Line 119: Line 119:
  
 vpkg_require cmake/default openmpi/4.1.5:intel-oneapi-2023 vpkg_require cmake/default openmpi/4.1.5:intel-oneapi-2023
 +
 +PREFIX="${G_INSTALL_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="$BASE_BUILD_FLAGS -DGMX_GPU=SYCL"
 +#    -DMKL_INCLUDE_DIR=$MKLROOT/include
 +#    -DMKL_LIBRARIES=-mkl=sequential
 +#"
 +
 +build_variant()
 +{
 +    local DBL=$1 MPI=$2
 +    local build_dir=""
 +    local build_flags=""
 +
 +    if [ $DBL -ne 0 ]; then
 +        build_dir="double"
 + build_flags="${build_flags} -DGMX_DOUBLE=on"
 +    else
 +        build_dir="single"
 +        build_flags="${build_flags} -DGMX_DOUBLE=off"
 +    fi
 +    if [ $MPI -eq 0 ]; then
 +        build_dir="${build_dir}-thread"
 +        build_flags="${build_flags} -DGMX_MPI=off -DGMX_THREAD_MPI=on -DCMAKE_DISABLE_FIND_PACKAGE_MPI=on"
 +        CC=icx CXX=icpx FC=ifx
 +    else
 +        build_dir="${build_dir}-mpi"
 +        build_flags="${build_flags} -DGMX_MPI=on -DGMX_THREAD_MPI=off"
 + CC=mpicc CXX=mpicxx FC=mpifort
 +    fi
 +    [ -d "build-${build_dir}" ] && rm -rf "build-${build_dir}"
 +    mkdir "build-${build_dir}" ; pushd "build-${build_dir}"
 +    CC=$CC CXX=$CXX FC=$FC \
 +        cmake \
 +     -DCMAKE_INSTALL_PREFIX="${PREFIX}/${build_dir}" \
 +            $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.
 +##
 +#             DOUBLE?    MPI?
 +#build_variant 0          0
 +#build_variant 1          0
 +#build_variant 0          1
 +build_variant 1          1
 +
 +</file>
 +
 +<file make SWMGR-build.sh.caviness>
 +#!/bin/bash -l
 +
 +vpkg_require cmake/default openmpi/4.1.4:intel-oneapi-2023
  
 PREFIX="${G_INSTALL_PREFIX}" PREFIX="${G_INSTALL_PREFIX}"
Line 271: Line 342:
  
 <file yaml gromacs-plumed.vpkg_yaml.caviness> <file yaml gromacs-plumed.vpkg_yaml.caviness>
-Gromacs_Plumed:+gromacs-plumed:
     prefix: /home/user/sw/Gromacs_Plumed/Gromacs     prefix: /home/user/sw/Gromacs_Plumed/Gromacs
     description: Gromacs_Plumed     description: Gromacs_Plumed
     url: "https://www.gromacs.org/"     url: "https://www.gromacs.org/"
          
 +    default-version: "v2022.5"
 +        
     versions:     versions:
         "v2022.5":         "v2022.5":
Line 292: Line 365:
 [user@login00.darwin ~]$ vpkg_check "$VALET_PKG_DIR/gromacs-plumed.vpkg_yaml" [user@login00.darwin ~]$ vpkg_check "$VALET_PKG_DIR/gromacs-plumed.vpkg_yaml"
 /home/user/.valet/gromacs-plumed.vpkg_yaml is OK /home/user/.valet/gromacs-plumed.vpkg_yaml is OK
-[Gromacs_Plumed] {+[gromacs-plumed] {
   contexts: all   contexts: all
   actions: {   actions: {
Line 301: Line 374:
   prefix: /home/user/sw/Gromacs_Plumed/Gromacs   prefix: /home/user/sw/Gromacs_Plumed/Gromacs
   source file: /home/user/.valet/gromacs-plumed.vpkg_yaml   source file: /home/user/.valet/gromacs-plumed.vpkg_yaml
-  default version: Gromacs_Plumed/v2022.5+  default version: gromacs-plumed/v2022.5
   versions: {   versions: {
-    [Gromacs_Plumed/v2022.5] {+    [gromacs-plumed/v2022.5] {
       contexts: all       contexts: all
       dependencies: {       dependencies: {
Line 340: Line 413:
 ===== Scaling ===== ===== Scaling =====
  
-This is the wall time for the structure relaxation of silicon with respect to the number of cores. The wall time decreases with an increased number of cores.+This is the wall time for MD run of 41057 atom, and nsteps=10000 with metadynamics by combining Gromacs and Plumed. The wall time decreases with an increased number of cores.
  
-{{:technical:recipes:scale.jpg?400|}}+{{:technical:recipes:scale_gromacs_plumed.jpg?400|}}
  • technical/recipes/gromacs-plumed.1715539582.txt.gz
  • Last modified: 2024-05-12 14:46
  • by bkang