Cosmomc + g95 v0.92

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Savvas Nesseris
Posts: 77
Joined: April 05 2005
Affiliation: UAM/IFT
Contact:

Cosmomc + g95 v0.92

Post by Savvas Nesseris » September 25 2010

I have just tried to compile the latest Cosmomc (version May 2010) with g95 under Cygwin and Windows 7 x64. As it seems, in the latest stable version of g95 (v0.92) an extra flag is needed (-cpp):
#G95
F90C = g95
CC = gcc
FFLAGS = -O2 -cpp
LAPACKL = -L/cygdrive/d/lapack-3.2.2 -llapack -lblas
I have checked that this is not required in the previous version (0.91).

On a similar note, for lapack (v3.2.2) the correct flags are the following:
FORTRAN = g95 -O2
OPTS =
DRVOPTS = $(OPTS)
NOOPT = -ffloat-store
LOADER = g95 -O2 -g
LOADOPTS =
I hope these save anyone out there a few hours of frustration (especially the change for g95 and the NOOPT for lapack).

I am going to play around with the optimization switches (for the cpu etc) in order to see the speed gains and if I find something interesting I will report back.

Cheers

Post Reply