compiling wmap likelihood software on Mactel oct-core architecture/ifort

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Hiranya Peiris
Posts: 54
Joined: September 28 2004
Affiliation: University College London

compiling wmap likelihood software on Mactel oct-core archit

Post by Hiranya Peiris » September 01 2007

Has anyone successfully compiled the v2p2p2 WMAP likelihood software on the intel/OS X 64-bit architecture (the new oct-core Mac Pro) using ifort? If so, can you share your compile flags for both cfitsio and WMAP?

I get the correct answer if I compile both as 32-bit:
1. compile cfitsio as a 32bit library

-g -O2 -Dg77Fortran -fPIC -fno-common

2. compile WMAP likelihood as same

-O2 $(WMAPFLAGS) -framework Accelerate

I get the wrong answers for the WMAP likelihood if I add the flag

-m64

to both compiles. It compiles and runs fine but just gives the wrong answers. I get the same wrong answers with gfortran and ifort. I did not have this problem with the ifort/64 bit combination on non-Mac intel architectures.

Hiranya Peiris
Posts: 54
Joined: September 28 2004
Affiliation: University College London

compiling wmap likelihood software on Mactel oct-core archit

Post by Hiranya Peiris » September 03 2007

Some further info on the problem: the cause seems to be related to the 64-bit intel Accelerate framework LAPACK routines. When I replace it with a fresh-from-source compiled LAPACK with ifort, it gives the correct results. Its hard to believe that Apple's LAPACK is at fault so now I am looking at the WMAP LAPACK calls themselves to see if there are potential initialization problems etc.

Post Reply