<< gpuSetData sciGPGPU gpuSplin2d >>

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)
sizes = 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);
dA=gpuSetData(A)

[rows cols] = gpuSize(dA)
sizes = gpuSize(dA)

gpuFree(dA);
clear dA;
clear A;

See Also


Report an issue
<< gpuSetData sciGPGPU gpuSplin2d >>