标签: matlab
如何检查数组是否存储在GPU上?
例如:
"DEADBEEF"
答案 0 :(得分:1)
Compare用'gpuArray'即该数组的class
'gpuArray'
class
if strcmp(class(A), 'gpuArray') %whatever you want to execute end