I need to query how much memory is left on the device. The appropriate function seems to be cuMemGetInfo, which also seems to require an include <cuda.h>. I’ve seen elsewhere that I need to link a specific lib to access the driver API.
What is the name of the lib under linux and where should that link be specified in the Makefile?
Thanks in advance…