run gpu function using matlab
이전 댓글 표시
i am writing the following command to use gpu:
k=parallel.gpu.CUDAKernel('STOMP.ptx', 'STOMP.cu','WavefrontUpdateSelfJoin')
using matlab 2015a on Windows 7. I get the following error at runtime:
error using parallel.internal.gpu.handleKernelArgs>iParseToken (line272)
unsupported type argument specification 'volatile unsigned long long int* profile'
error in parallel.internal.gpu.handleKernelArgs>iParseCPrototype (line 191)
error in parallel.internal.gpu.handleKernelArgs (line 79)
답변 (2개)
Joss Knight
2017년 5월 22일
0 개 추천
The argument parser cannot handle your type qualifier 'volatile' in order to work out the appropriate datatypes of arrays to pass to the kernel.
Either remove the qualifier 'volatile' (which is meaningless for a function argument anyway), or specify the prototype of your kernel function directly as a string instead of passing the .cu file in its entirety.
Mohsen Moftah
2017년 5월 25일
편집: Walter Roberson
2017년 5월 25일
댓글 수: 1
Joss Knight
2017년 5월 29일
편집: Joss Knight
2017년 5월 29일
Did you recompile your kernel?
카테고리
도움말 센터 및 File Exchange에서 GPU Computing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!