<< gpuSetData sciGPGPU gpuSum >>

sciGPGPU >> sciGPGPU > gpuSize

gpuSize

Retrieve the size of matrix stored in GPU memory.

Call sequence

[rows cols]=gpuSize(gA)

Parameters

gA

Pointer on the matrix stored in GPU memory.

[rows cols]

rows : the numbers of rows of the GPU matrix.

cols : the numbers of cols of the GPU matrix.

Description

[rows cols]=gpuSize(gA)

[rows cols]=gpuSize(gA) allow users to retrieve the size of matrix stored in GPU memory.

Exemples

//--Scilab script--
A=ones(2,19);
gA=gpuSetData(A)

[rows cols] = gpuSize(gA)
gA=gpuFree(gA);
clear gA;
clear A;

See Also

<< gpuSetData sciGPGPU gpuSum >>