Search code examples
memory-managementcudatype-erasurecuda-drivercuda-graphs

What type should be pointed to for the result of cuDeviceGetGraphMemAttribute()?


cuDeviceGetGraphMemAttribute() takes a void pointer to a result variable. But - what type does it expect the pointed-to value to be? The documentation (for CUDA v12.0) doesn't say. I'm guessing it's an unsigned 64-bit type, but I want to make sure.


Solution

  • For all current attributes you can get with this function, the void * must point to a cuuint64_t.

    Thanks goes to @AbatorAbeter for pointing out where this is stated.