A CUDA distribution, at least on Linux, has a "stub libraries" directory, which contains among others a libcuda.so
file - named the same as an actual NVIDIA driver library.
When build a CUDA program which makes driver API calls, on a system with both CUDA and the CUDA driver installed - when should I be linking against the driver library stub, and when should I link against the actual driver library?
Notes:
I would always counsel to link against the stub library rather than the local libcuda, where one exists. I say that for exactly three reasons: