[cctbxbb] Enabling OpenMP for phaser on OS X
Luc Bourhis
luc_j_bourhis at mac.com
Mon Sep 17 04:32:23 PDT 2012
Hi,
> I found if I created a symbolic link from a g++4.7 compiler to /usr/bin/g++, I could "trick" phaser into compiling with OpenMP enabled.
>
> This is kind of an ugly hack. How do I force it to use /sw/bin/g++-4 ? Is there some place in the source code for cctbx (or phaser) that I can make such a change?
May I ask on which platform you work?
In any case, the orthodox way to do that would be to pass --compiler=gcc-4.7 to libtbx/configure.py but one would need to modify libtbx/SConscript to support that version. I suggest searching for the string "darwin_gcc-4.2" in that file to see how it has been done for --compiler=gcc-4.2. This SConscript is already an utter mess but well…
Best wishes,
Luc
More information about the cctbxbb
mailing list