using inpolygon with gpuarray
3 次查看(过去 30 天)
显示 更早的评论
using inpolygon inside a for loop, GPU memory usage increase at each loop iteration although variables have always same dimensions.
for ii =1:Nloop
% do something to retrieve AntennaLatVertex, AntennaLonVertex
TF = inpolygon(Lat, Lon, AntennaLatVertex, AntennaLonVertex);
end
AntennaLatVertex and AntennaLonVertex are 4x1 matrix representing "rectangle" vertex. all variables are gpuArray at each loop iteration memory increase by significant amount (both on linux and Windows platform) any ideas ?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GPU Computing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!