[英]What type should be pointed to for the result of cuDeviceGetGraphMemAttribute()?
cuDeviceGetGraphMemAttribute()
takes a void pointer to a result variable. cuDeviceGetGraphMemAttribute()
采用指向结果变量的空指针。 But - what type does it expect the pointed-to value to be?但是 - 它期望指向的值是什么类型? The documentation (for CUDA v12.0) doesn't say .文档(针对 CUDA v12.0) 没有说. I'm guessing it's an unsigned 64-bit type, but I want to make sure.我猜它是一个无符号的 64 位类型,但我想确定一下。
For all current attributes you can get with this function, the void *
must point to a cuuint64_t
.对于您可以使用此函数获得的所有当前属性, void *
必须指向cuuint64_t
。
Thanks goes to @AbatorAbeter for pointing out where this is stated.感谢@AbatorAbeter 指出了这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.