Macports clang 3.7 and 3.8 now support openmp, which creates the opportunity to build graph-tool on OS X with OpenMP speeds. I've tried the following, which haven't quite worked yet, but it's close. Any pointers would be appreciated.
sudo port uninstall py-graph-tool py27-graph-tool
sudo port clean --dist py-graph-tool py27-graph-tool

sudo port install clang-3.8 +openmp
sudo port -d install py-graph-tool py27-graph-tool configure.compiler=macports-clang-3.8 configure.args=--enable-openmp
I expected the option "configure.args=--enable-openmp" would tell the autoconf'd ./configure command to specify --enable-openmp, but it does not:
DEBUG: Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-graph-tool/py27-graph-tool/work/graph-tool-2.13" && ./configure --prefix=/opt/local --with-boost=/opt/local --exec-prefix=/opt/local/Library/Frameworks/Python.framework/Versions/2.7

checking whether to enable parallel algorithms with openmp... no
The port notes for clang-3.8 say:
Use with clang-3.[78] (when built with +openmp variant) by adding
"-fopenmp" to your compile and link lines.
(Or "-I/opt/local/include/libomp -L/opt/local/lib/libomp -fopenmp"
if clang is installed without +openmp.)
Based on the Port Phases page, I've tried a variety of options like configure.cxxflags-append=-fopenmp, all without success. Perhaps a custom portfile is necessary, but this would be easiest to address through the port command line.

View this message in context: OS X Macports clang with openmp build of graph-tool
Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.