Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the main program installation directory.
cd /path/to/NAMD
- Decompress the NAMD installation package.
tar -xvf NAMD_2.14_Source.tar.gz
- Go to the NAMD_2.14_Source directory generated after the decompression.
cd NAMD_2.14_Source
- Decompress the charm-6.10.2.tar installation package.
tar xvf charm-6.10.2.tar
- Go to the charm-6.10.2 directory generated after the decompression.
cd charm-6.10.2
- Perform the configuration.
./build charm++ multicore-arm8 clang flang --with-production
- Go to the directory generated after the decompression.
cd multicore-arm8-flang-clang/tests/charm++/megatest/
- Install the components.
make pgm ./pgm +p4
- Modify the FFTW and TCL configuration items.
- Copy the FFTW3 template.
cd /path/to/NAMD cp arch/Linux-x86_64.fftw3 arch/Linux-ARM64.fftw
- Open the arch/Linux-ARM64.fftw file.
vi arch/Linux-ARM64.fftw
- Press i to enter the insert mode and change FFTDIR to /usr.
FFTDIR=/usr
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the arch/Linux-ARM64.tcl file.
vi arch/Linux-ARM64.tcl
- Press i to enter the insert mode, change TCLDIR to /usr, and change the library file version to -ltcl8.6.
TCLDIR=/usr TCLLIB=-L$(TCLDIR)/lib -ltcl8.6 -ldl -lpthread
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Copy the FFTW3 template.
- Compile NAMD.
./config Linux-ARM64-g++ --charm-arch multicore-arm8-flang-clang --with-cuda --cxx clang++ --cc clang cd Linux-ARM64-g++/ make
An namd2 executable program is generated in the current directory after the compilation is complete.

Parent topic: NAMD 2.14 Porting Guide (CentOS 8.2)