UoB-HPC / BabelStream

STREAM, for lots of devices written in many programming models
Other
323 stars 110 forks source link

Add oneTBB as a FetchContent dependency #133

Closed tom91136 closed 1 year ago

tom91136 commented 2 years ago

oneTBB works well when used as a CMake FetchContent dependency. By doing this, TBB and the benchmark can be configured and compiled together which allows TBB to make better decisions based on the environment (e.g. TBB uses hwloc for NUMA awareness, if available during configuration).

tom91136 commented 2 years ago

See https://github.com/UoB-HPC/cloverleaf_tbb/blob/23053cfc3d702bf289a07437577672f7f8fe7a9c/CMakeLists.txt#L9-L14 which integrates FetchContent TBB with CloverLeaf

tomdeakin commented 1 year ago

Done in a branch, will hit develop soon.