pagefun makes an error
11 次查看(过去 30 天)
显示 更早的评论
The following code makes an error. How can I solve it?
b = gpuArray(repmat([1 2 ; 2 2; 4 3], 1, 1, 3));
pagefun(@norm, b)
Error using gpuArray/pagefun Function passed as first input argument contains unsupported or unknown function 'norm'.
What is the corrected code?
I am using Matlab 2014a, Parallel Computing Toolbox Version 6.4 and Gigabyte GTX750.
Thanks.
0 个评论
采纳的回答
Edric Ellis
2016-9-27
2 个评论
Joss Knight
2016-9-28
No. The doc says:
Currently the supported values for FUN are:
Most element-wise gpuArray functions, listed in Run Built-In Functions on a GPU, and the following:
- @ctranspose
- @fliplr
- @flipud
- @inv
- @mldivide
- @mrdivide
- @mtimes
- @rot90
- @transpose
更多回答(1 个)
另请参阅
类别
在 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!