# cudaMalloc3DArray Out of memory

**URL:** <https://forums.developer.nvidia.com/t/cudamalloc3darray-out-of-memory/4777>\
**Category:** CUDA Programming and Performance\
**Created:** [July 28, 2008, 7:51am UTC](https://forums.developer.nvidia.com/t/cudamalloc3darray-out-of-memory/4777 "2008-07-28T07:51:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![christarento](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@christarento](https://forums.developer.nvidia.com/u/christarento)\
**Post date:** [July 28, 2008, 7:51am UTC](https://forums.developer.nvidia.com/t/cudamalloc3darray-out-of-memory/4777/1 "2008-07-28T07:51:39Z")

</div>

Hi,

I would like to work with 8x 3D array of float(512_512_64) with 4 cudaArrays binded in 3D texture and 4 standard arrays in linear memory.

It should use 512 MB but after allocating the 4 textures I get an out of memory error on a 8800GTX with 768MB.

```auto
cudaArray *d_fixed;

const cudaExtent volumeSize = make_cudaExtent(m_cols, m_rows, m_planes);

cudaChannelFormatDesc texDesc = cudaCreateChannelDesc<float>();

CUDA_SAFE_CALL( cudaMalloc3DArray(&d_fixed, &texDesc, volumeSize) );

float *d_transform;

const size_t size = m_cols*m_rows*m_planes*sizeof(float);

CUDA_SAFE_CALL( cudaMalloc((void**)&d_transform, size) );

```

Some precision the 8800GTX is cuda dedicated, I have an other video card for display.

Thanks Guys
