原始指针到基础数据
#include“gpu / mxgpuarray.h”void * mxgpugetdata(mxgpuarray const * const mgp)
MGP.
指向A.mxgpuarray
在GPU上。目标GPUArray必须完整,而不是稀疏。
指向数据。
mxgpugetdata.
将原始指针返回到基础数据。将此指针转换为要在设备上使用的数据类型。您有责任检查数组内的数据是否具有相应的类型,您可以使用它mxgpugetclassid.
。