7.54. cudaMemPoolProps 结构体参考
[CUDA 运行时使用的数据类型]
指定从内存池分配的属性。
公共变量
- enumcudaMemAllocationType allocType
- enumcudaMemAllocationHandleType handleTypes
- struct cudaMemLocation location
- size_t maxSize
- unsigned char reserved[54]
- unsigned short usage
- void * win32SecurityAttributes
变量
- enumcudaMemAllocationTypecudaMemPoolProps::allocType [继承]
-
分配类型。当前必须指定为 cudaMemAllocationTypePinned
- enumcudaMemAllocationHandleTypecudaMemPoolProps::handleTypes [继承]
-
内存池分配将支持的句柄类型。
- struct cudaMemLocationcudaMemPoolProps::location [继承]
-
分配应驻留的位置。
- size_t cudaMemPoolProps::maxSize [继承]
-
最大内存池大小。设置为 0 时,默认为系统相关的值。
- unsigned char cudaMemPoolProps::reserved[54] [继承]
-
保留供将来使用,必须为 0
- unsigned short cudaMemPoolProps::usage [继承]
-
指示内存池预期用途的位掩码。
- void * cudaMemPoolProps::win32SecurityAttributes [继承]
-
当指定 cudaMemHandleTypeWin32 时,需要 Windows 特定的 LPSECURITYATTRIBUTES。此安全属性定义了导出分配可以传输到其他进程的范围。在所有其他情况下,此字段必须为零。