Very Strange OpenMP behavior Calling CAMB from Octave

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Jonathan Sievers
Posts: 5
Joined: May 18 2006
Affiliation: CITA

Very Strange OpenMP behavior Calling CAMB from Octave

Post by Jonathan Sievers » August 06 2010

Hey folks - I'm trying to call CAMB from Octave (free Matlab clone), which is written C++, using a C wrapper. When I do this, CAMB runs fine the first time I call it, then hangs on repeat calls if more than one loop is parallelized. But one loop is fine on repeated calls. Which would even be OK if the same loop were the most critical one for both low-ell and high-ell regimes, but that turns out not to be the case. Anyone seen this behavior or have thoughts on how to fix it?

Post Reply