# shared memory size how much shared memory is available

**URL:** https://forums.developer.nvidia.com/t/shared-memory-size-how-much-shared-memory-is-available/20566
**Category:** CUDA Programming and Performance
**Created:** [January 16, 2011, 6:08pm UTC](https://forums.developer.nvidia.com/t/shared-memory-size-how-much-shared-memory-is-available/20566 "2011-01-16T18:08:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![xrismf](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@xrismf](https://forums.developer.nvidia.com/u/xrismf)
#### Post date: [January 16, 2011, 6:08pm UTC](https://forums.developer.nvidia.com/t/shared-memory-size-how-much-shared-memory-is-available/20566/1 "2011-01-16T18:08:49Z")

</div>

Hello,

is there a general way or a rule of thmub how much shared memory is available for every block? I have a GTS 240 with 1GB.

Kind Regards

---

<div class="post-metadata">

### Author: ![tera](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tera](https://forums.developer.nvidia.com/u/tera)
#### Post date: [January 16, 2011, 9:17pm UTC](https://forums.developer.nvidia.com/t/shared-memory-size-how-much-shared-memory-is-available/20566/2 "2011-01-16T21:17:56Z")

</div>

On compute capability 1.x devices like your GTS 240 it’s 16 kbytes per multiprocessor. Thus a block can use up to 16kb.  
If you want more blocks per multiprocessor, you need to restrict the shared memory use further.

Check the Programming Guide for details.

---

<div class="post-metadata">

### Author: ![xrismf](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@xrismf](https://forums.developer.nvidia.com/u/xrismf)
#### Post date: [January 16, 2011, 10:57pm UTC](https://forums.developer.nvidia.com/t/shared-memory-size-how-much-shared-memory-is-available/20566/3 "2011-01-16T22:57:33Z")

</div>

> [@](#):
>
> On compute capability 1.x devices like your GTS 240 it’s 16 kbytes per multiprocessor. Thus a block can use up to 16kb.
> 
> If you want more blocks per multiprocessor, you need to restrict the shared memory use further.
> 
> Check the Programming Guide for details.

I verified this using deviceQuery. Thank you very much.
