Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the installation directory of the main program.
cd /path/to/nwchem
- Decompress the installation package.
tar -xvf nwchem-6.8.1-release.tar.gz
- Modify the configuration file.
cp ga-5.6.5.tar.gz nwchem-6.8.1-release/src/tools
- Go to the directory generated after the decompression.
cd nwchem-6.8.1-release/src
- Set the environment variables.
export NWCHEM_TOP=/path/to/nwchem/nwchem-6.8.1-release export LARGE_FILES=TRUE export NWCHEM_TARGET=LINUX64 export NWCHEM_MODULES=all export ARMCI_NETWORK=MPI-PR export USE_MPI=y export USE_MPIF=y export USE_MPIF4=y export USE_INTERNALBLAS=y export TCE_CUDA=y export CUDA_LIBS="-L/usr/local/cuda/lib64 -lcudart -lcublas" export CUDA_FLAGS="-arch sm_80" export CUDA_INCLUDE="-I. -I/usr/local/cuda/include" export CUDA=nvcc
- Perform the compilation and installation.
make nwchem_config make
- Check whether an executable file is generated.
ls -l /path/to/nwchem/nwchem-6.8.1-release/bin/LINUX64/nwchem
If the following information is displayed, the installation is successful.

- Set the environment variables.
export PATH=/path/to/nwchem/nwchem-6.8.1-release/bin/LINUX64:$PATH
Parent topic: NWChem 6.8.1 Porting Guide (Kylin V10)