How multidimensional gpu arrays are stored on GPU and how are they proced when functions are invoked?

조회 수: 4 (최근 30일)
Dear All,
Could you please help me to better understand how data is passed in GPU when using multidimensional arrays from theoretical part of the world :)
For example, correct me if I am wrong, when creating for example 3 dimensional gpuarray (100x100x100) it is stored on global memory, once MATLAB invoke function to multiply this 3D array with other, then it is reverts each third dimension back to two dimension array and it is stored on shared memory that It could be accessed by different GPU cores. Is it something like this?
  댓글 수: 1
Edric Ellis
Edric Ellis 2020년 3월 13일
MATLAB arrays (include gpuArrays) are stored in column-major format, even for 3D arrays. If you're referring to using pagefun(@mtimes,...) with gpuArray data, then the underlying operation knows how to find the "pages" of the gpuArray data without moving bytes around.
Do you have a specific query in mind, or are you simply curious? The layout of gpuArray data should be irrelevant to you unless you're using the GPU MEX interface.

댓글을 달려면 로그인하십시오.

답변 (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