run gpu function using matlab
Show older comments
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)
Answers (2)
Joss Knight
on 22 May 2017
0 votes
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
on 25 May 2017
Edited: Walter Roberson
on 25 May 2017
1 Comment
Joss Knight
on 29 May 2017
Edited: Joss Knight
on 29 May 2017
Did you recompile your kernel?
Categories
Find more on GPU Computing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!