From 9e68a3501f3236e29d80d0eba0fd1620f4da8d27 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Wed, 10 Nov 2021 03:07:59 -0500 Subject: [PATCH 1/2] bump default LAMMPS version to stable_29Sep2021_update1 bump LAMMPS to latest stable version --- doc/install/install-lammps.md | 18 +++++++++--------- source/install/build_cc.sh | 2 +- source/install/build_lammps.sh | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/install/install-lammps.md b/doc/install/install-lammps.md index d7c979ef39..5a7ffda92d 100644 --- a/doc/install/install-lammps.md +++ b/doc/install/install-lammps.md @@ -12,12 +12,12 @@ make lammps DeePMD-kit will generate a module called `USER-DEEPMD` in the `build` directory. If you need low precision version, move `env_low.sh` to `env.sh` in the directory. Now download the LAMMPS code (`29Oct2020` or later), and uncompress it: ```bash cd /some/workspace -wget https://github.com/lammps/lammps/archive/stable_29Sep2021.tar.gz -tar xf stable_29Sep2021.tar.gz +wget https://github.com/lammps/lammps/archive/stable_29Sep2021_update1.tar.gz +tar xf stable_29Sep2021_update1.tar.gz ``` -The source code of LAMMPS is stored in directory `lammps-stable_29Sep2021`. Now go into the LAMMPS code and copy the DeePMD-kit module like this +The source code of LAMMPS is stored in directory `lammps-stable_29Sep2021_update1`. Now go into the LAMMPS code and copy the DeePMD-kit module like this ```bash -cd lammps-stable_29Sep2021/src/ +cd lammps-stable_29Sep2021_update1/src/ cp -r $deepmd_source_dir/source/build/USER-DEEPMD . ``` Now build LAMMPS @@ -43,13 +43,13 @@ Starting from `8Apr2021`, LAMMPS also provides a plugin mode, allowing one build Now download the LAMMPS code (`8Apr2021` or later), and uncompress it: ```bash cd /some/workspace -wget https://github.com/lammps/lammps/archive/stable_29Sep2021.tar.gz -tar xf stable_29Sep2021.tar.gz +wget https://github.com/lammps/lammps/archive/stable_29Sep2021_update1.tar.gz +tar xf stable_29Sep2021_update1.tar.gz ``` -The source code of LAMMPS is stored in directory `lammps-stable_29Sep2021`. Now go into the LAMMPS code and create a directory called `build` +The source code of LAMMPS is stored in directory `lammps-stable_29Sep2021_update1`. Now go into the LAMMPS code and create a directory called `build` ```bash -mkdir -p lammps-stable_29Sep2021/build/ -cd lammps-stable_29Sep2021/build/ +mkdir -p lammps-stable_29Sep2021_update1/build/ +cd lammps-stable_29Sep2021_update1/build/ ``` Now build LAMMPS. Note that `PLUGIN` and `KSPACE` package must be enabled, and `BUILD_SHARED_LIBS` must be set to `yes`. You can install any other package you want. ```bash diff --git a/source/install/build_cc.sh b/source/install/build_cc.sh index c7e7686812..767c829695 100755 --- a/source/install/build_cc.sh +++ b/source/install/build_cc.sh @@ -20,7 +20,7 @@ NPROC=$(nproc --all) BUILD_TMP_DIR=${SCRIPT_PATH}/../build mkdir -p ${BUILD_TMP_DIR} cd ${BUILD_TMP_DIR} -cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DINSTALL_TENSORFLOW=TRUE ${CUDA_ARGS} -DLAMMPS_VERSION=stable_29Sep2021 -DUSE_TTM=TRUE .. +cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DINSTALL_TENSORFLOW=TRUE ${CUDA_ARGS} -DLAMMPS_VERSION=stable_29Sep2021_update1 -DUSE_TTM=TRUE .. make -j${NPROC} make install diff --git a/source/install/build_lammps.sh b/source/install/build_lammps.sh index 399847ae25..ece4ad7d91 100755 --- a/source/install/build_lammps.sh +++ b/source/install/build_lammps.sh @@ -15,7 +15,7 @@ BUILD_TMP_DIR=${SCRIPT_PATH}/../build_lammps mkdir -p ${BUILD_TMP_DIR} cd ${BUILD_TMP_DIR} # download LAMMMPS -LAMMPS_VERSION=stable_29Sep2021 +LAMMPS_VERSION=stable_29Sep2021_update1 if [ ! -d "lammps-${LAMMPS_VERSION}" ] then curl -L -o lammps.tar.gz https://github.com/lammps/lammps/archive/refs/tags/${LAMMPS_VERSION}.tar.gz From fff6d8331a26c24b07c541a04bba28e32c73d695 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Fri, 7 Jan 2022 22:32:09 -0500 Subject: [PATCH 2/2] bump to `update2` --- doc/install/install-lammps.md | 18 +++++++++--------- source/install/build_cc.sh | 2 +- source/install/build_lammps.sh | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/install/install-lammps.md b/doc/install/install-lammps.md index 5a7ffda92d..958a47ad12 100644 --- a/doc/install/install-lammps.md +++ b/doc/install/install-lammps.md @@ -12,12 +12,12 @@ make lammps DeePMD-kit will generate a module called `USER-DEEPMD` in the `build` directory. If you need low precision version, move `env_low.sh` to `env.sh` in the directory. Now download the LAMMPS code (`29Oct2020` or later), and uncompress it: ```bash cd /some/workspace -wget https://github.com/lammps/lammps/archive/stable_29Sep2021_update1.tar.gz -tar xf stable_29Sep2021_update1.tar.gz +wget https://github.com/lammps/lammps/archive/stable_29Sep2021_update2.tar.gz +tar xf stable_29Sep2021_update2.tar.gz ``` -The source code of LAMMPS is stored in directory `lammps-stable_29Sep2021_update1`. Now go into the LAMMPS code and copy the DeePMD-kit module like this +The source code of LAMMPS is stored in directory `lammps-stable_29Sep2021_update2`. Now go into the LAMMPS code and copy the DeePMD-kit module like this ```bash -cd lammps-stable_29Sep2021_update1/src/ +cd lammps-stable_29Sep2021_update2/src/ cp -r $deepmd_source_dir/source/build/USER-DEEPMD . ``` Now build LAMMPS @@ -43,13 +43,13 @@ Starting from `8Apr2021`, LAMMPS also provides a plugin mode, allowing one build Now download the LAMMPS code (`8Apr2021` or later), and uncompress it: ```bash cd /some/workspace -wget https://github.com/lammps/lammps/archive/stable_29Sep2021_update1.tar.gz -tar xf stable_29Sep2021_update1.tar.gz +wget https://github.com/lammps/lammps/archive/stable_29Sep2021_update2.tar.gz +tar xf stable_29Sep2021_update2.tar.gz ``` -The source code of LAMMPS is stored in directory `lammps-stable_29Sep2021_update1`. Now go into the LAMMPS code and create a directory called `build` +The source code of LAMMPS is stored in directory `lammps-stable_29Sep2021_update2`. Now go into the LAMMPS code and create a directory called `build` ```bash -mkdir -p lammps-stable_29Sep2021_update1/build/ -cd lammps-stable_29Sep2021_update1/build/ +mkdir -p lammps-stable_29Sep2021_update2/build/ +cd lammps-stable_29Sep2021_update2/build/ ``` Now build LAMMPS. Note that `PLUGIN` and `KSPACE` package must be enabled, and `BUILD_SHARED_LIBS` must be set to `yes`. You can install any other package you want. ```bash diff --git a/source/install/build_cc.sh b/source/install/build_cc.sh index 767c829695..a4da73651f 100755 --- a/source/install/build_cc.sh +++ b/source/install/build_cc.sh @@ -20,7 +20,7 @@ NPROC=$(nproc --all) BUILD_TMP_DIR=${SCRIPT_PATH}/../build mkdir -p ${BUILD_TMP_DIR} cd ${BUILD_TMP_DIR} -cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DINSTALL_TENSORFLOW=TRUE ${CUDA_ARGS} -DLAMMPS_VERSION=stable_29Sep2021_update1 -DUSE_TTM=TRUE .. +cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DINSTALL_TENSORFLOW=TRUE ${CUDA_ARGS} -DLAMMPS_VERSION=stable_29Sep2021_update2 -DUSE_TTM=TRUE .. make -j${NPROC} make install diff --git a/source/install/build_lammps.sh b/source/install/build_lammps.sh index ece4ad7d91..8ab3475e64 100755 --- a/source/install/build_lammps.sh +++ b/source/install/build_lammps.sh @@ -15,7 +15,7 @@ BUILD_TMP_DIR=${SCRIPT_PATH}/../build_lammps mkdir -p ${BUILD_TMP_DIR} cd ${BUILD_TMP_DIR} # download LAMMMPS -LAMMPS_VERSION=stable_29Sep2021_update1 +LAMMPS_VERSION=stable_29Sep2021_update2 if [ ! -d "lammps-${LAMMPS_VERSION}" ] then curl -L -o lammps.tar.gz https://github.com/lammps/lammps/archive/refs/tags/${LAMMPS_VERSION}.tar.gz