What is wrong with my arrayFun function ?
조회 수: 3 (최근 30일)
이전 댓글 표시
Dear all, I have an arrayFun function. This function totally runs well when I use array ( CPU Array ) . The problem appears when I was trying to assign gpuArray ( similar array to the one in CPU, but I assign it to GPU ) into this arrayFun function. There is message appears in my command window "Package functions and MCOS class methods are unsupported" Does anyone have any idea what's wrong with my code ?
Thanks a lot !
P.s. When I tried another arrayFun function using gpuArray input, it is totally OK
댓글 수: 2
Guillaume
2014년 10월 14일
It would be really helpful if you showed the actual code that is causing an error, rather than trying to guess it.
Adam
2014년 10월 14일
Not all functions are overloaded for GPU arrays. Is the function you are using actually applicable to a gpuArray even without the arrayfun?
답변 (1개)
Edric Ellis
2014년 10월 14일
The error message is trying to indicate to you that the body of your arrayfun function cannot contain either method calls on MATLAB objects, nor can it contain calls to package functions (i.e. function names containing a . character).
댓글 수: 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!