Last active
October 20, 2018 15:55
-
-
Save ChrisDowning/69ceb2d12b3ba6aea0484ea2248e00f7 to your computer and use it in GitHub Desktop.
NWChem compilation (GCC, Intel MPI, MKL, fast ARMCI implementation)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Before compilation, need to build standalone version of ARMCI provided with NWChem | |
# To build: cd $NWCHEM_TOP/tools && ./install-armci-mpi | |
source /opt/intel/mkl/bin/mklvars.sh intel64 | |
source /opt/intel/impi/2018.4.274/intel64/bin/mpivars.sh | |
export FC=gfortran | |
export _FC=mpif90 | |
export CC=gcc | |
export _CC=mpicc | |
export LD=/usr/bin/ld | |
export NWCHEM_TOP=/home/redoak/NWChem/nwchem-6.8 | |
export NWCHEM_TARGET=LINUX64 | |
export NWCHEM_MODULES="all" | |
export LARGE_FILES=TRUE | |
export USE_64TO32=y | |
export ARMCI_NETWORK=ARMCI | |
export EXTERNAL_ARMCI_PATH=$NWCHEM_TOP/external-armci | |
export USE_MPI=y | |
export USE_MPIF=y | |
export USE_MPIF4=y | |
export BLASOPT="-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_scalapack_ilp64 -lmkl_gf_ilp64 -lmkl_sequential -lmkl_core -lmkl_blacs_intelmpi_ilp64 -lpthread -lm -ldl" | |
make nwchem_config |& tee config.log | |
make 64_to_32 |& tee lts.log | |
make -j8 |& tee make.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instructions to install Intel MPI and MKL here.