GPU/CUDA API Change with Interleaved Complex Data
2 次查看(过去 30 天)
显示 更早的评论
Were there changes to the CUDA C-API with 2018a and the new layout of interleaved complex data? Are there differences in syntax between compiling with -R2018a and -R2017b, or does it make a difference?
I see that mxGetData/mxGetImagData is no longer recommended with the 2017b (and prior) C-API, but mxGPUGetData is still shown as the default way to get data on the GPU even in later releases. How does this relate to handling complex data? Does it return mxComplexSingle(/Double/etc) format?
1 个评论
James Tursa
2019-4-30
According to the online doc mxGPUGetData returns a (void *) type and it is up to you to cast it properly for downstream use.
采纳的回答
Edric Ellis
2019-5-1
gpuArray data has always been stored in complex-interleaved format since its introduction in R2010b. The mxGPUGetData function always returns a pointer to the interleaved data.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GPU Computing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!