Skip to content

Instantly share code, notes, and snippets.

@antoinetavant
Last active September 11, 2023 06:22
Show Gist options
  • Save antoinetavant/65fbed2ea669cffc028e6cd94faa8848 to your computer and use it in GitHub Desktop.
Save antoinetavant/65fbed2ea669cffc028e6cd94faa8848 to your computer and use it in GitHub Desktop.
script to run in a docker, just to see it it works
echo "pulling LPPic !"
git clone https://tavant@hephaistos.lpp.polytechnique.fr/rhodecode/GIT_REPOSITORIES/LPP/LPPic2D/LPPic
cd LPPic
git checkout FIX_Diel
mkdir -p build
cd build
module load mpi/openmpi-x86_64
export libinfo=SHARED && cmake ..
make -j
cd ..
chmod -R 777 build
chmod -R 777 /opt/buildagent/temp/
cd build
useradd nonroot
su -c "CTEST_OUTPUT_ON_FAILURE=1 ctest" nonroot
cd ../..
chmod -R 777 LPPic
cd LPPic
alias python=python3
su -c "sh scripts/debug_couples.sh" nonroot
@antoinetavant
Copy link
Author

antoinetavant commented Mar 19, 2019

use with :

source <(curl -s https://gist.githubusercontent.com/antoinelpp/65fbed2ea669cffc028e6cd94faa8848/raw/b4ccf175f765c92e20ee919fcb31f7de48d2f425/script_test_LPPic.sh)

@antoinetavant
Copy link
Author

antoinetavant commented Mar 19, 2019

You may want to use :

OMPI_MCA_btl_vader_single_copy_mechanism=none HDF5_INCLUDE=/usr/lib64/gfortran/modules/openmpi/ HDF5_LIB=/usr/lib64/openmpi/lib HYPRE_INCLUDE=/usr/include/openmpi-x86_64/hypre HYPRE_LIB=/usr/lib64/openmpi/lib PETSC_INCLUDE=/usr/include/openmpi-x86_64/petsc PETSC_LIB=/usr/lib64/openmpi/lib COMP=mpifort cmake ..

@jianyi324
Copy link

Hello! It needs a password when I git clone the "LPPic". Can you help me? please!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment