editeodoro / Bbarolo

Bbarolo is a 3D fitting tool to derive the kinematics of galaxies from emission-line observations.
http://editeodoro.github.io/Bbarolo/
GNU General Public License v2.0
30 stars 8 forks source link

compiled version (v1.4.4) is only using half CPU power on MacOS #13

Closed yangcht closed 5 years ago

yangcht commented 5 years ago

Hi EdT,

I switched from the pre-compiled binary (OSX) to the version I compiled myself on my MacOS 10.14.6 (default configuration). I found the latter is very slow and only using half of my CPU, while the pre-compiled version (https://github.com/editeodoro/Bbarolo/releases/tag/1.4) is using the full CPU.

Do you have any idea why this is happening?

Many thanks!!

yangcht commented 5 years ago

Sorry, I think it might be related to OpenMP support. My compiled version does not support OpenMP.

Problem solved after switching to the g++ compiler that supports OpenMP with

export CXX=/opt/local/bin/g++-mp-8

And then reconfigure and make works! Now the new binary is using the full CPU power!

editeodoro commented 5 years ago

Please remember that default compiler in Mac OSX (clang, aliased to gcc) does not support OpenMP.

yangcht commented 4 years ago

Update: using

export CXX=clang++-mp-8.0