Advertisement
dcesini

namd_install

May 2nd, 2018
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.25 KB | None | 0 0
  1. ########## compile and install namd2 2.13 #####################
  2.  
  3. ########      MPI version with OPENMPI    ###################
  4.  
  5. yum install openmpi-devel.x86_64
  6. yum install csh
  7.  
  8. export PATH=$PATH:/usr/lib64/openmpi/bin/
  9. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib/
  10.  
  11.  
  12. ##################################################
  13. # Install NAMD from Source
  14. #####################################################
  15. # Unpack NAMD and matching Charm++ source code and enter directory:
  16. #Download namd source code from https://www.ks.uiuc.edu/Research/namd/ (registration needed)
  17.   tar xzf NAMD_2.13_Source.tar.gz
  18.   cd NAMD_2.13_Source
  19.   tar xf charm-6.8.2.tar
  20.   cd charm-6.8.2
  21.  
  22. ## Build and test the Charm++/Converse library (MPI version):
  23.   env MPICXX=mpicxx ./build charm++ mpi-linux-x86_64 --with-production
  24.   cd mpi-linux-x86_64/tests/charm++/megatest
  25.   make pgm
  26.   mpirun -n 4 ./pgm    (run as any other MPI program on your cluster)
  27.   cd ../../../../..
  28.  
  29. #Download and install TCL and FFTW libraries:
  30. #  (cd to NAMD_2.13_Source if you're not already there)
  31. wget http://www.ks.uiuc.edu/Research/namd/libraries/fftw-linux-x86_64.tar.gz
  32. wget http://www.ks.uiuc.edu/Research/namd/libraries/tcl8.5.9-linux-x86_64.tar.gz
  33. wget http://www.ks.uiuc.edu/Research/namd/libraries/tcl8.5.9-linux-x86_64-threaded.tar.gz
  34.  
  35.   tar xzf fftw-linux-x86_64.tar.gz
  36.   mv linux-x86_64 fftw
  37.   tar xzf tcl8.5.9-linux-x86_64.tar.gz
  38.   tar xzf tcl8.5.9-linux-x86_64-threaded.tar.gz
  39.   mv tcl8.5.9-linux-x86_64 tcl
  40.   mv tcl8.5.9-linux-x86_64-threaded tcl-threaded
  41.  
  42. #Optionally edit various configuration files:
  43. #  (not needed if charm-6.8.2, fftw, and tcl are in NAMD_2.13_Source)
  44.  
  45.   vi Make.charm  (set CHARMBASE to full path to charm)
  46.   vi arch/Linux-x86_64.fftw     (fix library name and path to files)
  47.   vi arch/Linux-x86_64.tcl      (fix library version and path to TCL files)
  48. ###################################################
  49.  
  50. #   Set up build directory and compile:
  51.  
  52. # per   MPI version:
  53.   ./config Linux-x86_64-g++ --charm-arch mpi-linux-x86_64
  54.   cd Linux-x86_64-g++
  55.   make  
  56. # (or gmake -j 8, which should run faster)
  57.  
  58. ####################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement