【发布时间】:2021-10-22 14:51:41
【问题描述】:
我有一个 af::array 变量,它是 3000000*3:
int main()
{
// inputArray is the pointer which fills tempArray
af::array tempArray = af::array(af::dim4(3000000,3),inputArray);
tempArray(tempArray < 0) = 0;
}
问题是,我想删除这个数组以便释放我的内存,它会填满我的专用 GPU 内存。我该怎么做?
使用此变量之前 enter image description here
使用此变量后: enter image description here
【问题讨论】:
标签: c++ pointers memory gpu arrayfire