On 06/04/2014 12:15 AM, Shubham Bhushan wrote:
Hi
I asked earlier as to how utilize the parallel processing in my code. Now I installed it using the precompiled packages for Ubuntu. does that mean I'll have to reinstall it from source using the openmp option in the configure command? Shubham
No, the ubuntu packages were already compiled with openmp enabled. You can always verify if openmp was enabled or not by calling the show_config() function. You should get something like this on Ubuntu: >>> graph_tool.show_config() version: 2.2.31 (commit 245d1e2c, Thu Mar 27 11:28:39 2014 +0100) gcc version: 4.8.2 compilation flags: -D_FORTIFY_SOURCE=2 -I/usr/include/python2.7 -I/usr/include -I/usr/lib/python2.7/dist-packages/numpy/core/include/numpy -I/usr/lib/python2.7/dist-packages/scipy -I/usr/include -DSPARSEHASH_PREFIX=google -Wall -Wextra -Wno-unused-local-typedefs -Wno-unused-parameter -O3 -std=gnu++11 -ftemplate-depth-250 -Wno-deprecated -Wno-unknown-pragmas -O3 -fvisibility=default -fvisibility-inlines-hidden -fopenmp -I/usr/include -DSPARSEHASH_PREFIX=google -Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/lib -lpython2.7 install prefix: /usr python dir: /usr/lib/python2.7/dist-packages graph filtering: True openmp: True uname: Linux sputnik 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 The 'openmp: True' line above indicates openmp was enabled during compilation. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>