A few notes about installing icemc on OSC
Dependencies
ROOT - download from CERN and install according to instructions
FFTW - do "module load gnu/4.8.5" (or put it in your .bash_profile)
The environment variable FFTWDIR must contain the directory where FFTW resides
in my case this was /usr/local/fftw3/3.3.4-gnu
set this up in your .bash_profile (not .bashrc)
I copied my working instance of icemc from my laptop to a folder in my osc space
Copy the whole icemc directory (maybe its icemc/trunk, depending on how you installed), EXCEPT for the "output" subdir because it's big and unnecessary
in your icemc directory on OSC, do "mkdir output"
In icemc/Makefile
find a statement like this:
LIBS += -lMathMore $(FFTLIBS) -lAnitaEvent
and modify it to include the directory where the FFTW library is:
LIBS += -L$(FFTWDIR)/lib -lMathMore $(FFTLIBS) -lAnitaEvent
note: FFTLIBS contains the list of libraries (e.g., -lfftw3), NOT the library search paths
Compile by doing "make"
Remember you should set up a batch job on OSC using PBS.
|