7.54. cudaMemPoolProps 结构体参考

[CUDA运行时使用的数据类型]

指定从该池中分配内存的属性。

公共变量

enumcudaMemAllocationType allocType
enumcudaMemAllocationHandleType handleTypes
struct cudaMemLocation location
size_t  maxSize
unsigned char  reserved[54]
unsigned short  用法
void * win32SecurityAttributes

变量

enumcudaMemAllocationTypecudaMemPoolProps::allocType [inherited]

分配类型。当前必须指定为 cudaMemAllocationTypePinned

enumcudaMemAllocationHandleTypecudaMemPoolProps::handleTypes [inherited]

内存池分配将支持的句柄类型。

struct cudaMemLocationcudaMemPoolProps::location [inherited]

位置分配应驻留于此。

size_t cudaMemPoolProps::maxSize [inherited]

最大连接池大小。当设置为0时,默认使用系统相关值。

unsigned char cudaMemPoolProps::reserved[54] [inherited]

保留供未来使用,必须为0

unsigned short cudaMemPoolProps::用法 [inherited]

表示内存池预期用途的位掩码。

void * cudaMemPoolProps::win32SecurityAttributes [inherited]

当指定cudaMemHandleTypeWin32时需要Windows特定的LPSECURITYATTRIBUTES。此安全属性定义了导出分配可传输到其他进程的范围。 在所有其他情况下,此字段必须为零。