# Explanation of Error related to memory

**URL:** <https://discourse.julialang.org/t/explanation-of-error-related-to-memory/60111>\
**Category:** GPU\
**Tags:** gpu, cuda, ijulia\
**Created:** [April 27, 2021, 3:19pm UTC](https://discourse.julialang.org/t/explanation-of-error-related-to-memory/60111 "2021-04-27T15:19:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sumanshekhar17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sumanshekhar17/32/23537_2.png) [@Sumanshekhar17](https://discourse.julialang.org/u/Sumanshekhar17)\
**Post date:** [April 27, 2021, 3:19pm UTC](https://discourse.julialang.org/t/explanation-of-error-related-to-memory/60111/1 "2021-04-27T15:19:31Z")

</div>

Hi all,  
I am learning GPU programming and wanted to know what maximum grid size my machine can resolve so I went for a `1000x1000x500` grid and I got this error. Can you please explain what it is saying in easy words

```julia
ERROR: Out of GPU memory trying to allocate 7.451 GiB
Effective GPU memory usage: 97.26% (30.877 GiB/31.749 GiB)
CUDA allocator usage: 30.531 GiB
binned usage: 30.531 GiB (30.531 GiB allocated, 0 bytes cached)

```
