Compiling LAMMPS with OpenKIM on XSEDE HPC

Hello Everyone,

I’m using a build script[1](given by system admin) to compile LAMMPS with OpenKIM in XSEDE supercluster but I’m getting this error[2]. I had tried to use instructions given at “https://groups.google.com/forum/#!topic/openkim/RCCoEyzNZeA” but still, I’m not succeeding. Any helpful input will be much appreciated. Thank you for your time and efforts.

[1]

#!/usr/bin/env bash

declare -xr COMPILER_MODULE=‘gnu/4.9.2’
declare -xr MPI_MODULE=‘mvapich2_ib/2.1’
declare -xr GNUTOOLS_MODULE=‘gnutools/2.69’

module purge
module load “{COMPILER_MODULE}" module load "{MPI_MODULE}”
module load “${GNUTOOLS_MODULE}”
module list

declare -xr LAMMPS_VERSION=‘8Mar18’
declare -xr LAMMPS_ROOT_DIR="{HOME}/Software/lammps" declare -xr LAMMPS_ROOT_URL='http://lammps.sandia.gov/tars' declare -xr LAMMPS_TARBALL="lammps-{LAMMPS_VERSION}.tar.gz"

cd “${LAMMPS_ROOT_DIR}”

mkdir -p “${LAMMPS_ROOT_DIR}/tarballs”

wget “{LAMMPS_ROOT_URL}/{LAMMPS_TARBALL}”
-O “{LAMMPS_ROOT_DIR}/tarballs/{LAMMPS_TARBALL}”

tar -xzf “{PWD}/tarballs/lammps-{LAMMPS_VERSION}.tar.gz”

cd “lammps-${LAMMPS_VERSION}/src”

make lib-kim args="-v kim-api-v1.9.3 -b -a Glue_Ercolessi_Adams_Al__MO_324507536345_001"
#source ${HOME}/local/bin/kim-api-v1-activate
make yes-asphere
make yes-body
make yes-class2
make yes-colloid
make yes-coreshell
make yes-dipole
make yes-granular
make yes-kspace
make yes-manybody
make yes-mc
make yes-misc
make yes-molecule
make yes-mpiio
make yes-peri
make yes-qeq
make yes-replica
make yes-rigid

make yes-shock
make yes-snap
make yes-srd

make no-compress # zlib (sys)
make yes-kim # KIM (ext: https://openkim.org/)
#source ${HOME}/local/bin/kim-api-v1-activate
make no-meam # lib/meam (int)
make no-mscg # MS-CG, LAPACK and GSL (GNU Scientific Library)
(ext)
make no-poems # lib/poems (int)
make no-python # Python 2.6 or later. Python 3 is not yet supported.
(sys)
make no-reax # lib/reax (int)
make no-voronoi # Voro++ library (ext)

make mpi

[2]

.
.
.

Installing package snap
Installing package srd
Uninstalling package compress
Installing package kim
Uninstalling package meam
Uninstalling package mscg
build.sh: line 57: ext: command not found
Uninstalling package poems
Uninstalling package python
build.sh: line 60: sys: command not found
Uninstalling package reax
Uninstalling package voronoi
make[1]: Entering directory /home/jkashyap/Software/lammps/lammps-8Mar18/src/Obj_mpi' ../../lib/kim/Makefile.lammps:27: *** kim-api-v1-build-config utility is not available. Something is wrong with your KIM API package setup. Stop. make[1]: Leaving directory /home/jkashyap/Software/lammps/lammps-8Mar18/src/Obj_mpi’
make[1]: Entering directory /home/jkashyap/Software/lammps/lammps-8Mar18/src/Obj_mpi' ../../lib/kim/Makefile.lammps:27: *** kim-api-v1-build-config utility is not available. Something is wrong with your KIM API package setup. Stop. make[1]: Leaving directory /home/jkashyap/Software/lammps/lammps-8Mar18/src/Obj_mpi’
make: *** [mpi] Error 2

Hi Jatin,

It looks like you just need to uncomment one of the "activate" lines.

So, change

#source ${HOME}/local/bin/kim-api-v1-activate

to

source ${HOME}/local/bin/kim-api-v1-activate

Ryan

Sorry,

Actually this probably needs to be edited more.

Something like:

source ${LAMMPS_ROOT_DIR}/lib/kim/installed-kim-api-v1.9.3/bin/kim-api-v1-activate

Ryan

Hi Ryan,

I changed the first commented “activate” line with the one you gave [1]. Now it’s giving me a new error[2].

[1]

#!/usr/bin/env bash

declare -xr COMPILER_MODULE=‘gnu/4.9.2’
declare -xr MPI_MODULE=‘mvapich2_ib/2.1’
declare -xr GNUTOOLS_MODULE=‘gnutools/2.69’

module purge
module load “{COMPILER_MODULE}" module load "{MPI_MODULE}”
module load “${GNUTOOLS_MODULE}”
module list

declare -xr LAMMPS_VERSION=‘8Mar18’
declare -xr LAMMPS_ROOT_DIR="{HOME}/Software/lammps" declare -xr LAMMPS_ROOT_URL='http://lammps.sandia.gov/tars' declare -xr LAMMPS_TARBALL="lammps-{LAMMPS_VERSION}.tar.gz"

cd “${LAMMPS_ROOT_DIR}”

mkdir -p “${LAMMPS_ROOT_DIR}/tarballs”

wget “{LAMMPS_ROOT_URL}/{LAMMPS_TARBALL}”
-O “{LAMMPS_ROOT_DIR}/tarballs/{LAMMPS_TARBALL}”

tar -xzf “{PWD}/tarballs/lammps-{LAMMPS_VERSION}.tar.gz”

cd “lammps-${LAMMPS_VERSION}/src”

make lib-kim args="-v kim-api-v1.9.3 -b -a Glue_Ercolessi_Adams_Al__MO_324507536345_001"
#source {HOME}/local/bin/kim-api-v1-activate source {LAMMPS_ROOT_DIR}/lib/kim/installed-kim-api-v1.9.3/bin/kim-api-v1-activate
make yes-asphere
make yes-body
make yes-class2
make yes-colloid
make yes-coreshell
make yes-dipole
make yes-granular
make yes-kspace
make yes-manybody
make yes-mc
make yes-misc
make yes-molecule
make yes-mpiio
make yes-peri
make yes-qeq
make yes-replica

make yes-rigid
make yes-shock
make yes-snap
make yes-srd

make no-compress # zlib (sys)
make yes-kim # KIM (ext: https://openkim.org/)
#source ${HOME}/local/bin/kim-api-v1-activate
make no-meam # lib/meam (int)
make no-mscg # MS-CG, LAPACK and GSL (GNU Scientific Library)
(ext)
make no-poems # lib/poems (int)
make no-python # Python 2.6 or later. Python 3 is not yet supported.
(sys)
make no-reax # lib/reax (int)
make no-voronoi # Voro++ library (ext)

make mpi

[2]
.
.
.

Installing lib kim
Created /home/jkashyap/Software/lammps/lammps-8Mar18/lib/kim/Makefile.KIM_DIR
using /home/jkashyap/Software/lammps/lammps-8Mar18/lib/kim/installed-kim-api-v1.9.3
Downloading kim-api tarball …
Traceback (most recent call last):
File “Install.py”, line 202, in
geturl(url,"%s/s.txz" (thisdir,version))
File “Install.py”, line 88, in geturl
subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
AttributeError: ‘module’ object has no attribute ‘check_output’
build.sh: line 31: /home/jkashyap/Software/lammps/lib/kim/installed-kim-api-v1.9.3/bin/kim-api-v1-activate: No such file or directory

Hello Ryan,

I got a script[1] from the system admin which is working just fine. Anyway, thank you for your time.

[1]

#!/usr/bin/env bash

declare -xr COMPILER_MODULE=‘gnu/4.9.2’
declare -xr MPI_MODULE=‘mvapich2_ib/2.1’
declare -xr GNUTOOLS_MODULE=‘gnutools/2.69’
declare -xr PYTHON_MODULE=‘python/2.7.10’

module purge
module load “{COMPILER_MODULE}" module load "{MPI_MODULE}”
module load “{GNUTOOLS_MODULE}" module load "{PYTHON_MODULE}”
module list

declare -xr LAMMPS_VERSION=‘8Mar18’
declare -xr LAMMPS_ROOT_DIR="{HOME}/Software/lammps" declare -xr LAMMPS_ROOT_URL='[http://lammps.sandia.gov/tars](http://lammps.sandia.gov/tars)' declare -xr LAMMPS_TARBALL="lammps-{LAMMPS_VERSION}.tar.gz"

mkdir -p “${LAMMPS_ROOT_DIR}”

cd “${LAMMPS_ROOT_DIR}”

mkdir -p “${LAMMPS_ROOT_DIR}/tarballs”

wget “{LAMMPS_ROOT_URL}/{LAMMPS_TARBALL}”
-O “{LAMMPS_ROOT_DIR}/tarballs/{LAMMPS_TARBALL}”
tar -xzvf “{LAMMPS_ROOT_DIR}/tarballs/lammps-{LAMMPS_VERSION}.tar.gz”

cd “{LAMMPS_ROOT_DIR}/lammps-{LAMMPS_VERSION}/lib/kim”

python Install.py -b -a everything -vv

cd “{LAMMPS_ROOT_DIR}/lammps-{LAMMPS_VERSION}/src”

make yes-asphere
make yes-body
make yes-class2
make yes-colloid
make yes-coreshell
make yes-dipole
make yes-granular
make yes-kspace
make yes-manybody
make yes-mc
make yes-misc
make yes-molecule
make yes-mpiio
make yes-peri
make yes-qeq
make yes-replica
make yes-rigid
make yes-shock
make yes-snap
make yes-srd
make yes-kim # KIM (ext: https://openkim.org/)

make no-compress # zlib (sys)
make no-meam # lib/meam (int)
make no-mscg # MS-CG, LAPACK and GSL (GNU Scientific Library) (ext)
make no-poems # lib/poems (int)
make no-python # Python 2.6 or later. Python 3 is not yet supported. (sys)
make no-reax # lib/reax (int)
make no-voronoi # Voro++ library (ext)

make mpi