Page 1 of 1

cosmomc and pgf90 on pentium 4

Posted: December 15 2004
by Elena Pierpaoli
Hi,
does anyone know which flags to use in the compilation of cosmomc with pgf90 on a pentium 4?
Also, which is the correct command to link the lapak library?


Thank you,

Elena

Re: cosmomc and pgf90 on pentium 4

Posted: December 16 2004
by Antony Lewis
I don't know, but the free GnuF95 compiler works at least for CAMB

http://g95.sourceforge.net/

so you could try that instead if you have problems with pgf90. (please post correct pgf90 settings if you find them out).

cosmomc and pgf90 on pentium 4

Posted: December 23 2004
by Elena Pierpaoli
actually, I managed to compile with minimal flags. However, I had troubles because the code coudn't read the input file (quite disappointing indeed!).
There is a problem with iargc function.
I just switched to ifc, and didn't solve the problem with iargc.

Elena

Re: cosmomc and pgf90 on pentium 4

Posted: December 27 2004
by Anze Slosar
Elena Pierpaoli wrote: I just switched to ifc, and didn't solve the problem with iargc.
Well, it works fairly perfectly for me with ifc... Do you use -Vaxlib (I guess, otherwise it wouldn't compile...)?

cosmomc and pgf90 on pentium 4

Posted: January 20 2005
by Alessandro Melchiorri
Ciao Elena,
I managed to succesfully compile it with pgf90 using the fllowing settings:

F90C = pgf90
FFLAGS = -O2
LAPACKL = -L/usr/local/cernlib/other.ports/pgf_lib -lpacklib -llapack3 -lmathlib -lkernlib -lblas
INCLUDE = -I../camb

For pgf90 I also needed to edit a .mypgf90rc file with one line in my home directory:

set GCCDIR=/usr/lib/gcc-lib/i386-redhat-linux/3.2.2;

and now cosmomc works on our farm of P4 processors with RedHat 9.0.

I hope it helps!
Alessandro