Skip to content

Commit

Permalink
disabled all modules, remove boost, remove lammps
Browse files Browse the repository at this point in the history
  • Loading branch information
Massimiliano Bonomi committed Apr 3, 2024
1 parent 1a485d6 commit 8440bd1
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 6,178 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,37 +25,27 @@ jobs:
source activate build
conda-build -c conda-forge plumed
conda-build -c conda-forge gromacs
conda-build -c conda-forge lammps
- name: Deploy
env:
CONDA_UPLOAD_TOKEN: ${{ secrets.CONDA_UPLOAD_TOKEN }}
run: |
source activate base # needed to have correct CONDA_PREFIX
anaconda -t $CONDA_UPLOAD_TOKEN upload -u plumed -l cecam-2023 $CONDA_PREFIX/conda-bld/*/lammps*.tar.bz2 --force
anaconda -t $CONDA_UPLOAD_TOKEN upload -u plumed -l cecam-2023 $CONDA_PREFIX/conda-bld/*/plumed*.tar.bz2 --force
anaconda -t $CONDA_UPLOAD_TOKEN upload -u plumed -l cecam-2023 $CONDA_PREFIX/conda-bld/*/gromacs*.tar.bz2 --force
anaconda -t $CONDA_UPLOAD_TOKEN upload -u plumed -l isdd-2024 $CONDA_PREFIX/conda-bld/*/plumed*.tar.bz2 --force
anaconda -t $CONDA_UPLOAD_TOKEN upload -u plumed -l isdd-2024 $CONDA_PREFIX/conda-bld/*/gromacs*.tar.bz2 --force
- name: Test
run: |
conda create --name plumed-masterclass
source activate plumed-masterclass
conda install -y -c conda-forge plumed py-plumed numpy pandas matplotlib notebook mdtraj mdanalysis git
# check if python module is working
python -c "import plumed; p=plumed.Plumed(); print(p)"
# first install serial gromacs
conda install -y --strict-channel-priority -c plumed/label/masterclass -c conda-forge gromacs
# then replace with parallel gromacs and plumed
conda install -y --strict-channel-priority -c plumed/label/cecam-2023 -c conda-forge plumed
conda install -y --strict-channel-priority -c plumed/label/cecam-2023 -c conda-forge gromacs
conda install -y --strict-channel-priority -c plumed/label/isdd-2024 -c conda-forge plumed
conda install -y --strict-channel-priority -c plumed/label/isdd-2024 -c conda-forge gromacs
# check if python module is working
python -c "import plumed; p=plumed.Plumed(); print(p)"
cd test
gmx_mpi mdrun -s topolA.tpr -plumed plumed.dat -nsteps 1000
cat colvar.dat
mpiexec --oversubscribe -np 3 gmx_mpi mdrun -multidir dir? -plumed plumed.dat
cat dir*/colvar*.dat
# install lammps
cd -
conda install -y --strict-channel-priority -c plumed/label/cecam-2023 -c conda-forge plumed lammps
cd test-lammps
mpiexec lmp -in start.lmp
cat COLVAR
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Conda packages for ISDD-2024 tutorial

This branch is used to build GROMACS 2020.7 and PLUMED 2.9.
This branch is used to build GROMACS 2020.7 and PLUMED 2.9. Optional PLUMED modules are not disabled.
27 changes: 0 additions & 27 deletions lammps/build.sh

This file was deleted.

2 changes: 0 additions & 2 deletions lammps/conda_build_config.yaml

This file was deleted.

53 changes: 0 additions & 53 deletions lammps/meta.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions plumed/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export CPPFLAGS="-D__PLUMED_DEFAULT_KERNEL=$PREFIX/lib/libplumedKernel$SHLIB_EXT
export CXXFLAGS="${CXXFLAGS//-O2/-O3}"

# libraries are explicitly listed here due to --disable-libsearch
export LIBS="-lboost_serialization -lfftw3 -lgsl -lgslcblas -llapack -lblas -lz $LIBS"
export LIBS="-lfftw3 -lgsl -lgslcblas -llapack -lblas -lz $LIBS"

# enable MPI
export CXX=mpic++
Expand All @@ -26,7 +26,7 @@ export CXX=mpic++
# --disable-libsearch forces to link only explicitely requested libraries
# --disable-static-patch avoid tests that are only required for static patches
# --disable-static-archive makes package smaller
./configure --prefix=$PREFIX --disable-python --disable-libsearch --disable-static-patch --disable-static-archive --enable-modules=all --enable-boost_serialization
./configure --prefix=$PREFIX --disable-python --disable-libsearch --disable-static-patch --disable-static-archive

make -j3
make install
Expand Down
5 changes: 1 addition & 4 deletions plumed/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ requirements:
- llvm-openmp # [osx]
- make
host:
- boost-cpp
- openmpi
- fftw
- gsl
Expand All @@ -35,8 +34,6 @@ requirements:
- llvm-openmp # [osx]
- zlib
run:
# for some not clear reason boost-cpp is needed here as well
- boost-cpp
- openmpi
- gawk
- llvm-openmp # [osx]
Expand Down Expand Up @@ -69,4 +66,4 @@ about:

extra:
recipe-maintainers:
- GiovanniBussi
- MaxBonomi
Loading

0 comments on commit 8440bd1

Please sign in to comment.