I have been trying to install CosmoMC in my PC, but actually, what I want is to install it in such a way I can run it using the Condor System (Condor Version 6.4.7, at INFN, Italy).
I would like to know if someone here have ever used the Condor System to run CosmoMC or some other code like that, because I have some problems in the compilation process for wmap_likelihoodcode_v2p2p2.
Currently, I'm using the following Makefiel code:
Code: Select all
#Makefile --- WMAP Likelihood code...
#CFITSIO=/usr/local
CFITSIO=/wrk04/acero/CosmoMC/cfitsio
#
# Non-test object files.
#
OBJS = read_archive_map.o \
read_fits.o \
WMAP_3yr_options.o \
WMAP_3yr_util.o \
WMAP_3yr_tt_pixlike.o \
WMAP_3yr_tt_beam_and_ptsrc_corr.o \
WMAP_3yr_teeebb_pixlike.o \
WMAP_3yr_likelihood.o
#
# General Commands.
#
DIFF = diff -w
RM = rm -f
# See the CHANGES files for a description of these options
WMAPFLAGS = -DOPTIMIZE -DOPTIMIZE2 #-DTIMING -DFASTERTT
## SGI ProPack(Altix)/Intel -- gets the LAPACK functions from the system SCSL library.
F90 = f90 #pgf90 #ifort
FFLAGS = -O $(WMAPFLAGS) -g
INCS = -I. -I$(CFITSIO) #/include
#LIBS = -L. -L$(CFITSIO)/lib -lcfitsio -lscs_mp
LIBS = -L. -L$(CFITSIO) -lcfitsio -L/wrk04/acero/CosmoMC/lapack-3.1.0 -llapack_LINUX -lblas_LINUX -ltmglib_LINUX -lguide -lpthread -static
all: test
test: $(OBJS) test.o
condor_compile $(F90) $(FFLAGS) -o $@ $(OBJS) test.o $(LIBS)
check: test
./test | tee output.log
$(DIFF) output.log output.std
%.o: %.f90
condor_compile $(F90) $(FFLAGS) $(INCS) -c -o $@ $<
%.o: %.F90
condor_compile $(F90) $(FFLAGS) $(INCS) -c -o $@ $<
clean:
$(RM) *.o *.mod *.log *~
distclean: clean
$(RM) test
When I run the Makefile (using 'gmake' as suggested by A. Lewis), it compile all the *f90 and *F90 files, until the test fiel, when the following message is produced:
Here I don't know what is happening and is where I'm asking you to help me, if someone knows a possible solution.condor_compile f90 -O -DOPTIMIZE -DOPTIMIZE2 -g -I. -I/wrk04/acero/CosmoMC/cfitsio -c -o test.o test.F90
condor_compile f90 -O -DOPTIMIZE -DOPTIMIZE2 -g -o test read_archive_map.o read_fits.o WMAP_3yr_options.o WMAP_3yr_util.o WMAP_3yr_tt_pixlike.o WMAP_3yr_tt_beam_and_ptsrc_corr.o WMAP_3yr_teeebb_pixlike.o WMAP_3yr_likelihood.o test.o -L. -L/wrk04/acero/CosmoMC/cfitsio -lcfitsio -L/wrk04/acero/CosmoMC/lapack-3.1.0 -llapack_LINUX -lblas_LINUX -ltmglib_LINUX -lguide -lpthread -static
LINKING FOR CONDOR : /usr/lib/cmplrs/cc/ld -non_shared -o test -L. -L/wrk04/acero/CosmoMC/cfitsio -L/wrk04/acero/CosmoMC/lapack-3.1.0 -g2 -O4 /condor/6.4.7/OSF1/lib/condor_rt0.o read_archive_map.o read_fits.o WMAP_3yr_options.o WMAP_3yr_util.o WMAP_3yr_tt_pixlike.o WMAP_3yr_tt_beam_and_ptsrc_corr.o WMAP_3yr_teeebb_pixlike.o WMAP_3yr_likelihood.o test.o /usr/lib/cmplrs/fort90/for_main.o -lcfitsio -llapack_LINUX -lblas_LINUX -ltmglib_LINUX -lguide -lpthread -qlshpf -lUfor -lfor -lFutil -lm -lots -lm_c32 -lmld -lexc
/condor/6.4.7/OSF1/lib/libcondorsyscall.a /condor/6.4.7/OSF1/lib/libz.a -lm -lc /condor/6.4.7/OSF1/lib/libcondorc++support.a
/condor/6.4.7/OSF1/lib/ld: 27406 Memory fault - core dumped
f90: Severe: Failed while trying to link.
gmake: *** [test] Error 1
Thank you very much,
MarioA