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

47 views Asked by At

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.

1

There are 1 answers

0
einpoklum On BEST ANSWER

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.