Step 1: Setting Environment Variable
what package/library you need for compile AMBER is GNU compiler, FFTW, MPI or OpenMPI, and CUDA (only for using GPU)
export AMBERHOME=$HOME/amberexport CUDA_HOME=$CRAY_CUDATOOLKIT_DIRexport CRAYPE_LINK_TYPE=dynamicexport CRAY_ADD_RPATH=yesThen you are supposed ready to compile AMBER. Below are different commands which would compile AMBER as your desired runtime version.
Step 2: Compile AMBER
# Compile AMBER as serial CPU version
make clean./configure -nomtkpp -crayxt5 -noX11 --with-python $PYTHON --with-netcdf $NETCDF_DIR gnumake install# Compile AMBER as parallel CPU version
make clean./configure -nomtkpp -crayxt5 -noX11 --with-python $PYTHON --with-netcdf $NETCDF_DIR -mpi gnumake install# Compile AMBER as serial GPU version
make cleanfind . -name "*.a" -exec rm {} \; find . -name "*.so" -exec rm {} \; find . -name "*.so.*" -exec rm {} \; find . -name netcdf.mod -exec rm {} \; export PYTHON=`which python`./configure -nomtkpp -crayxt5 -noX11 --with-python $PYTHON --with-netcdf $NETCDF_DIR -cuda gnumake install# Compile AMBER as parallel GPU version
make clean./configure -nomtkpp -crayxt5 -noX11 --with-python $PYTHON --with-netcdf $NETCDF_DIR -cuda -mpi gnumake installThe AMBER executable file is at $AMBERHOME/bin directory.
Step 3: Test AMBER
cd $AMBERHOME/test/ubiquitine$AMBERHOME/bin/sander.MPI -O -i mdin -p prmtop -c inpcrd -o job.outRangsiman Ketkaew