building healpix with cc/ifort on OS X Leopard [solved]

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

building healpix with cc/ifort on OS X Leopard [solved]

Post by Hiranya Peiris » February 19 2008

Has anyone succeeded in building a working healpix 2.01 on OS X Leopard (10.5.2) using ifort (I have version 10.1.006) and cc? I would love to see your CFLAGS and FFLAGS if so. I built cfitsio with the default options, and its test program passes fine. When I compile healpix (using default configure options for ifort and the same CFLAGS that cfitsio uses), it appears to compile fine. However, "make test" yields a huge slew of segfaults, a sample of which is attached below. I am trying this on the latest Mac Pro, the one which has eight 3.2 GHz cores.

I have tried a build which drops the ifort optimization down to -O1. The result is exactly the same.

---------------

SYNFAST 2.0.0
*** Synthesis of a Temperature (and Polarisation) map from its power
spectrum ***
Single precision outputs

Reading run parameters from syn.par
parameters not defined in that file will be set to their default value
Parser: simul_type = 2
Parser: nsmax = 128
Parser: nlmax = 256
Parser: infile = cl.fits
Parser: iseed = -1
Parser: fwhm_arcmin = 30.0000000000000
Parser: beam_file = ''
Parser: winfiledir = '' <default>
Parser: windowfile = pixel_window_n0128.fits <default>
Parser: almsfile = ''
Parser: plmfile = ''
Parser: outfile = !test_map.fits
Parser: outfile_alms = !test_alm.fits

SYNFAST> Generating alm coefficients
SYNFAST> Pixel window file:../data/pixel_window_n0128.fits
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
synfast 0027A343 Unknown Unknown Unknown
synfast 002797DF Unknown Unknown Unknown
synfast 00236884 Unknown Unknown Unknown
synfast 001FF6BC Unknown Unknown Unknown
synfast 0020688E Unknown Unknown Unknown
libSystem.B.dylib 901385EB Unknown Unknown Unknown
Unknown FFFFFFFF Unknown Unknown Unknown
synfast 000043B6 Unknown Unknown Unknown
synfast 00001D3F Unknown Unknown Unknown
synfast 00001912 Unknown Unknown Unknown
synfast 000018CC Unknown Unknown Unknown
synfast 000017F9 Unknown Unknown Unknown
Unknown 00000002 Unknown Unknown Unknown
Error: file test_map.fits does not exist!
program exits with exit code 1

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

building healpix with cc/ifort on OS X Leopard [solved]

Post by Hiranya Peiris » February 19 2008

Upgrading to ifort 10.1.008 has solved this issue for me.

Post Reply