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

Causes scope to crash during benchmark registration on non-gpu systems #2

Closed cwpearson closed 6 years ago

cwpearson commented 6 years ago

Running

./scope --v=10 --version

causes

[2018-09-05 08:03:24.591] [scope] [critical] ERROR[CUDA driver version is insufficient for CUDA runtime version] on /home/pearson/repos/scope/comm_scope/src/memcpy/args.hpp::31 In ArgsCountGpuGpuPeerNoSelf:(cudaGetDeviceCount(&n)) FAILED

I think this is because the benchmarks are being registered first, which causes the argument functions to be applied, which calls cudaGetDeviceCount, which fails when there is no GPU.

cwpearson commented 6 years ago

c45eefbd94c5843ab514c0167721199bdda29d12