Using the Condor System

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Mario Acero
Posts: 28
Joined: November 15 2006
Affiliation: Universidad del Atlantico
Contact:

Using the Condor System

Post by Mario Acero » January 19 2007

Hello there,

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 &#36;&#40;F90&#41; &#36;&#40;FFLAGS&#41; &#36;&#40;INCS&#41; -c -o &#36;@ &#36;<

%.o&#58; %.F90
	condor_compile &#36;&#40;F90&#41; &#36;&#40;FFLAGS&#41; &#36;&#40;INCS&#41; -c -o &#36;@ &#36;<

clean&#58;
	&#36;&#40;RM&#41; *.o *.mod *.log *~

distclean&#58; clean
	&#36;&#40;RM&#41; test
So, I am using the condor-compile command in order to link the program to the Condor libraries, before the submission.

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:
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
Here I don't know what is happening and is where I'm asking you to help me, if someone knows a possible solution.

Thank you very much,

MarioA

Post Reply