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.
Asked
Active
Viewed 34 times
0

einpoklum
- 118,144
- 57
- 340
- 684
-
164-bit unsigned, https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html#group__CUDART__TYPES_1g4764cb94cff3171bdc738dd11a4c2ba6 – Abator Abetor Dec 25 '22 at 08:03
1 Answers
1
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.

einpoklum
- 118,144
- 57
- 340
- 684