GPU gather command clarification and GPU memory usage
1 次查看(过去 30 天)
显示 更早的评论
Dear All,
1. If x is a gpuarray, and y its cpu correspondent, after the command
y=gather(x)
is x still on the GPU or is cleared (by being gathered on the cpu)?
2. Also, is there a way to see memory usage just on GPU at a certain time point, and not combined with the cpu memory usage?
3. Can x be saved on the hard drive without first being passed as y on the cpu?
Thank you,
Octavian.
1 个评论
James Tursa
2015-4-2
编辑:James Tursa
2015-4-2
According to the sqrt(G) example in the doc, the gpuArray G still exists after the gather function, so that implies that your x above still exists as a gpuArray after the gather function.
采纳的回答
Edric Ellis
2015-4-2
- In this case, x still exists on the GPU - in general, input arguments to functions are not modified in MATLAB (some exceptions exist where the objects are handle types).
- Yes, look at the AvailableMemory field of the GPUDevice object returned by the function gpuDevice. See the documentation for more about this object
- Yes.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GPU Computing in MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!