CosmoCoffee Forum Index CosmoCoffee

 
 FAQFAQ   SearchSearch  MemberlistSmartFeed   MemberlistMemberlist    RegisterRegister 
   ProfileProfile   Log inLog in 
Arxiv New Filter | Bookmarks & clubs | Arxiv ref/author:

WMAP5 year code (v3) seg faults
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
Alex Conley



Joined: 08 Feb 2005
Posts: 11

PostPosted: March 06 2008  Reply with quote

Has anybody had any luck getting this to run? On a RH Linux box using the
Intel MKL version 10.0.1.014, the test code seg faults, although it compiles
successfully. The problem seems to be the OPTIMIZE compiler flag.
I experience the same problem with MKL version 9.1. Turning off
the new Gibbs sampler does not address the problem, although it
appears the crash is in a different place.

Turning off OPTIMIZE makes the code run in all cases, although
(presumably) more slowly.

Initializing WMAP likelihood, version v3
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
test 08071B20 wmap_teeebb_lowl_ 452 WMAP_5yr_teeebb_pixlike.F90
test 08082D6C wmap_likelihood_5 401 WMAP_5yr_likelihood.F90
test 0805A32F MAIN__ 95 test.F90

The crash, incidentally, is in the WMAP_5yr_teeebb_pixlike.F90 file.
Back to top
View user's profile  
Antony Lewis



Joined: 23 Sep 2004
Posts: 675
Affiliation: University of Sussex

PostPosted: March 06 2008  Reply with quote

Two fixes:

1. ulimit -s unlimited

2. (better for cluster) change the code so both declarations of ninvplninv2 are changed to real(8), and change dble(ninvplninv2) to ninvplninv2 in the arguments of DGEMV. [this prevents a large temporary array being created on the stack]

I have a probably-working cosmomc test build if anyone wants to try it.
Back to top
View user's profile [ Hidden ] Visit poster's website
Alex Conley



Joined: 08 Feb 2005
Posts: 11

PostPosted: March 06 2008  Reply with quote

Yup, both solutions fixed it. The latter is clearly better.
Thanks, Antony.
Back to top
View user's profile  
Vimal Simha



Joined: 11 May 2006
Posts: 13
Affiliation: Ohio State University

PostPosted: March 06 2008  Reply with quote

Antony Lewis wrote:
Two fixes:

1. ulimit -s unlimited

2. (better for cluster) change the code so both declarations of ninvplninv2 are changed to real(8), and change dble(ninvplninv2) to ninvplninv2 in the arguments of DGEMV. [this prevents a large temporary array being created on the stack]

I have a probably-working cosmomc test build if anyone wants to try it.


I'd be keen on trying it out if you could post/send the file.
Back to top
View user's profile  
Michael Drinkwater



Joined: 05 Jun 2009
Posts: 5
Affiliation: University of Queensland

PostPosted: June 09 2009  Reply with quote

Runtime errors on WMAP5 likelihood_v3

I was getting the same seg faults running the test program as above, despite using the release that includes Antony's fixes (V3P1 RELEASE, E.Komatsu, March 5, 2009). My system is a Linux cluster with Intel compilers, version 10.1.018. I found two solutions for this setup.

(A) As a novice I used the Intel MKL link hints page to get suggested options: http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/

After lots of trial and error I found the following worked (chosing 32-bit integers on the web page made the difference). The options I set on the Intel page were: Linux, Intel(R)64, Intel, Dynamic, 32-bit, Multi-thread, Intel, None. The (working) link command it gave (plus cfitsio) was:

LIBS = -L. -L$(CFITSIO)/lib -lcfitsio -L/opt/intel/mkl/10.0.5.025/lib/em64t -Wl,--start-group -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -Wl,--end-group -openmp -lpthread

(B) The Netlib Lapack library is installed on our system and linking to its lapack library alone gives working code too:

LIBS = -L. -L$(CFITSIO)/lib -lcfitsio -llapack

Hopefully this is of some use.
Back to top
View user's profile  
Karsten Jedamzik



Joined: 30 Nov 2011
Posts: 3
Affiliation: University of Montpellier

PostPosted: November 30 2011  Reply with quote

Hi,

I, unfortunately, also get segmentation faults though cosmomc has compiled.

For some reason,

ulimit -s unlimited

does not help. When I try the second fix proposed by you Antony I can find
the function 'DGEMV' but nowhere can I find a variable 'ninvplninv2'. Is this
due to changed versions ? or in which files should this variable be ?

Thanks for helping

Karsten

PS: Working on a Dell with Intel processor Intel(R) Core(TM)2 CPU
T5500 @ 1.66GHz and gfortran version 4.4
Back to top
View user's profile  
Karsten Jedamzik



Joined: 30 Nov 2011
Posts: 3
Affiliation: University of Montpellier

PostPosted: November 30 2011  Reply with quote

Sorry, found the variables 'ninvplninv2' but the problem seemed to have been
now fixed by the WMAP team.

However, my segmentation faults still persist !

Karsten
Back to top
View user's profile  
Display posts from previous:   
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group. Sponsored by WordWeb online dictionary and dictionary software.