GPU/CUDA API Change with Interleaved Complex Data

조회 수: 1 (최근 30일)
Matthew Morgan
Matthew Morgan 2019년 4월 30일
답변: Edric Ellis 2019년 5월 1일
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
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
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개)

카테고리

Help CenterFile Exchange에서 GPU Computing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by