【发布时间】:2018-10-02 01:56:23
【问题描述】:
在调用cuCtxDestroy 之后使用cuMemAlloc 内存分配是否安全?
例如
cuCtxCreate()
void *d_buffer;
cuMemAlloc(d_buffer, ....);
cuCtxDestroy();
// In another place but same thread
cuCtxCreate();
kernel_call<<<..>>>(d_buffer); // Use the device allocation previously created
【问题讨论】: