function gputest()
% pagefun
function res = ttt_gpu(bb)
res = bb + 1;
end
b = gpuArray(repmat([1 2 ; 2 2; 4 3], 1, 1, 3));
pagefun(@ttt_gpu, b)
end
The line "pagefun(@ttt_gpu, b)" makes an error. Can't I use pagefun with user defined function?

답변 (1개)

Edric Ellis
Edric Ellis 2016년 9월 27일

0 개 추천

pagefun supports only a limited set of functions. These are described in the documentation.

카테고리

도움말 센터File Exchange에서 GPU Computing에 대해 자세히 알아보기

태그

질문:

2016년 9월 27일

답변:

2016년 9월 27일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by