How to compile DOCK
To compile DOCK go to path/DOCK/src/i386
make make DEBUG=1 make SIZE=32  make clean
- To compile with portland group compilers
- go to a machine were pgf linsence is installed (sgehead1 or psi).
- To add a file for compilation, add the xxxx.f file to path/DOCK/src/ and add xxxx.o to i386/Makefile object list.
make pgprofile less pgprof.out pgprof - opens a GUI profiler that interprets pgprof.out !
make gmon.out less gmon.out
make gprofile less gprofile.txt
This is for the Shoichet Lab local version of DOCK 3.5.54 trunk.
Checking out the source files
csh mkdir /where/to/put cd /where/to/put svn checkout file:///raid4/svn/dock svn checkout file:///raid4/svn/libfgz
Compiling the program on our cluster
First, you need to set the path to the PGF compiler by adding this line to your .login file (at the end):
setenv DOCK_BASE ~xyz/dockenv echo DOCK_BASE set to $DOCK_BASE. source $DOCK_BASE/etc/login
When you login to sgehead now, you should see the "Enabling pgf compiler" message
ssh sgehead cd /where/to/put/libfgz/trunk make
Since we still have some 32bit computers, you'll also want to do
before leaving the libfgz branch and going to DOCK:
cd ../../dock/trunk/i386 make
This makes the 64 bit version. Some options:
Makes the 32bit version, useful for running on the cluster since some machines are older.
Makes a debug version that will report line numbers of errors and is usable with pgdbg (the Portland Group Debugger), which is useful when writing code but is 10x (or more) slower.
Compiling the program on the shared QB3 cluster
On one of the compilation nodes on the shared QB3 cluster (optint1 or optint2):
ssh optint2 cd /where/to/put/libfgz/trunk cp Makefile Makefile.old modify Makefile: uncomment the following: FC = ifort -O3 CC = icc -O3 make cd ../../dock/trunk/i386 cp Makefile Makefile.old modify Makefile uncomment the following: F77 = ifort FFLAGS = -O3 -convert big_endian make dock