kahypar / mt-kahypar

Mt-KaHyPar (Multi-Threaded Karlsruhe Hypergraph Partitioner) is a shared-memory multilevel graph and hypergraph partitioner equipped with parallel implementations of techniques used in the best sequential partitioning algorithms. Mt-KaHyPar can partition extremely large hypergraphs very fast and with high quality.
MIT License
114 stars 23 forks source link

How to build this if my TBB is installed in my user customized path? #143

Closed zlwu92 closed 1 year ago

zlwu92 commented 1 year ago

I build TBB from source and install it under my user home directory, let's say /home/xxx/tbb/include and /home/xxx/tbb/lib64. And I also add this two path into my ~/.bashrc file append after variable PATH and LD_LIBRARY_PATH. Then I source this file also.

But when I build mt-kahypar with cmake .., it still shows cannot find TBB package. How should I solve it?

Btw, my gcc version is 12.0

larsgottesbueren commented 1 year ago

Try setting the TBB_ROOT environment variable to your installation path and then do a fresh invocation of cmake. This will tell the script at cmake/modules/FindTBB.cmake where to look for your tbb installation. Starting at line 32 there's a couple more hints if it doesn't work right away.

If that doesn't work, we also offer the option to download and build tbb automatically via the KAHYPAR_DOWNLOAD_TBB variable; set it to ON.

zlwu92 commented 1 year ago

I see. Thank you~

larsgottesbueren commented 1 year ago

Did you get it to compile successfully? If so, please feel free to mark the issue as resolved.