c3sr / comm_scope

NUMA-aware multi-CPU multi-GPU data transfer benchmarks
https://github.com/c3sr/scope
Apache License 2.0
21 stars 3 forks source link

`nvcc fatal: Unknown option '-pthread' in CMake 3.17.2 #31

Closed cwpearson closed 1 year ago

cwpearson commented 4 years ago

On x86 with CMake 3.17.2, we observe that benchmark starts trying to link pthreads

This seems related to CMP0077, but also added CACHE BOOL to the relevant options we provide to benchmark in the top-level CMakeLists.txt file seems to have fixed it.

set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "blah") # remove dep on gtest
set(BENCHMARK_ENABLE_GTEST_TESTS OFF CACHE BOOL "blah") # remove dep on gtest
cwpearson commented 1 year ago

We now require CMake 3.18 for other reasons