eyalroz / cuda-kat

CUDA kernel author's tools
BSD 3-Clause "New" or "Revised" License
104 stars 8 forks source link

Gettings warnings about lock_guard's being defined but unused in doctest #95

Open eyalroz opened 2 years ago

eyalroz commented 2 years ago

Some versions of NVCC complain about unused lock_guard's. Perhaps they do nothing on the device side? Perhaps it's an NVCC bug?

At any rate, we can overcome this issue with old-style casting-to-void, i.e. (void) lock in many places in doctest.h.