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 https://guide.macports.org/chunked/reference.phases.htm 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: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 24.03.2016 10:19, Steve wrote:
Based on the Port Phases https://guide.macports.org/chunked/reference.phases.htm 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.
You should open a support ticket at the Macports website...
Best, Tiago
https://trac.macports.org/ticket/50958
-- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
Tiago,
After patching the portfile to use --enable-open, I see compiler errors for both clang-3.7 and clang-3.8 (posted at the macports ticket above). Macports suggested based on the compiler errors that I upstream this issue to you.
Would you mind taking a look and seeing if you think this is an issue with clang?
-- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
For those interested, Tiago patched OpenMP support for OS X into the latest graph-tool, and it's really fast.
Thanks again Tiago!
-- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.