Which library contains the DEVICE versions of the functions
- cudaGetDevice(int * device)
- cudaGetErrorString ( cudaError_t error )
What is the recommended way of finding this answer myself ? (using cuobjdump / or is there any documentation ?)
Second question is a bit more generic but it will be VERY helpful if I get to know the answer
For cudaGetDevice to work on device, we need to use -rdc. So I will be generating relocatable device code, but in a previous question of mine in this forum, an example of cudaGetDevice (int* device) was given and the library that was linked was libcudadevrt.a , now if this function is defined in this library (I am not sure though), this is a static library why do we particularly need relocatable device code, and why do we not need relocatable device code when we are not using the device runtime ?
Thanks,
Anil Mahmud.