# Texture memory in FCC

**URL:** <https://forums.developer.nvidia.com/t/texture-memory-in-fcc/20112>\
**Category:** CUDA Programming and Performance\
**Created:** [December 6, 2010, 5:37am UTC](https://forums.developer.nvidia.com/t/texture-memory-in-fcc/20112 "2010-12-06T05:37:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachin\_gupta](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Sachin\_gupta](https://forums.developer.nvidia.com/u/Sachin_gupta)\
**Post date:** [December 6, 2010, 5:37am UTC](https://forums.developer.nvidia.com/t/texture-memory-in-fcc/20112/1 "2010-12-06T05:37:07Z")

</div>

I have implemented FCC in CUDA and wanted to use shared memory to enhance the speed up but due to overlapping memory access by threads I have bank conflicts. Is there a way I can use texture memory to enhance the speed up. In essence I want to know does texture memory support simultaneous memory accesses by threads or it also serializes them just like shared memory does?

Sachin Gupta

---

<div class="post-metadata">

**Author:** ![Crankie](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Crankie](https://forums.developer.nvidia.com/u/Crankie)\
**Post date:** [December 6, 2010, 6:17am UTC](https://forums.developer.nvidia.com/t/texture-memory-in-fcc/20112/2 "2010-12-06T06:17:15Z")

</div>

> [@](#):
>
> I have implemented FCC in CUDA and wanted to use shared memory to enhance the speed up but due to overlapping memory access by threads I have bank conflicts. Is there a way I can use texture memory to enhance the speed up. In essence I want to know does texture memory support simultaneous memory accesses by threads or it also serializes them just like shared memory does?
> 
> Sachin Gupta

I don’t think you can getter better performance using Textures if you are able to keep your data in shared memory and playing with it without the need of writing/ reading to/from global memory. Also, if your bank conflicts are not of a higher degree, you should keep it this way, else try for another approach that helps you reduce the bank conflicts.

---

<div class="post-metadata">

**Author:** ![Crankie](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Crankie](https://forums.developer.nvidia.com/u/Crankie)\
**Post date:** [December 6, 2010, 6:17am UTC](https://forums.developer.nvidia.com/t/texture-memory-in-fcc/20112/3 "2010-12-06T06:17:15Z")

</div>

> [@](#):
>
> I have implemented FCC in CUDA and wanted to use shared memory to enhance the speed up but due to overlapping memory access by threads I have bank conflicts. Is there a way I can use texture memory to enhance the speed up. In essence I want to know does texture memory support simultaneous memory accesses by threads or it also serializes them just like shared memory does?
> 
> Sachin Gupta

I don’t think you can getter better performance using Textures if you are able to keep your data in shared memory and playing with it without the need of writing/ reading to/from global memory. Also, if your bank conflicts are not of a higher degree, you should keep it this way, else try for another approach that helps you reduce the bank conflicts.

---

<div class="post-metadata">

**Author:** ![Sachin\_gupta](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Sachin\_gupta](https://forums.developer.nvidia.com/u/Sachin_gupta)\
**Post date:** [December 6, 2010, 8:38am UTC](https://forums.developer.nvidia.com/t/texture-memory-in-fcc/20112/4 "2010-12-06T08:38:25Z")

</div>

> [@](#):
>
> I don’t think you can getter better performance using Textures if you are able to keep your data in shared memory and playing with it without the need of writing/ reading to/from global memory. Also, if your bank conflicts are not of a higher degree, you should keep it this way, else try for another approach that helps you reduce the bank conflicts.

Thanks a lot for your comments.

Can you help me out to know what order of bank conflicts we are facing if 1 thread access a 1-d array from say 1-16 index and the other thread is accessing from 2-17.In my particular case potential solution lies in further lowering down the box size but is the above degree of bank conflict too high?

I know that if all the threads work in total synchronization then each one will access a position adjacent to each other which lie in different banks but in actual conditions such a synchronization is not possible so what could be the predicted order of bank conflict

Thanks in advance
