# Problem about Coalesced Access

**URL:** <https://forums.developer.nvidia.com/t/problem-about-coalesced-access/4426>\
**Category:** CUDA Programming and Performance\
**Created:** [July 4, 2008, 12:17pm UTC](https://forums.developer.nvidia.com/t/problem-about-coalesced-access/4426 "2008-07-04T12:17:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flexlm](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@flexlm](https://forums.developer.nvidia.com/u/flexlm)\
**Post date:** [July 4, 2008, 12:17pm UTC](https://forums.developer.nvidia.com/t/problem-about-coalesced-access/4426/1 "2008-07-04T12:17:21Z")

</div>

wot[3008_gridDim.x_(kf-1)+gridDim.x_count1+blkid_blockDim.x+thid]=buf[thid];

i have some problem like this . wot is global memory and buf is share memory of 128 float size.  
3008_gridDim.x_(kf-1) is start of access address an it should always be multipled of region size. Because of 3008 means 94_32.  
count1 always be n_64 also be the multiled of regionsize. blockDim.x =64  
know it hase been looked like the access to globale memory wot is coalsced.  
but the cudaprof rebport there is uncoalesced access?  
can any one help me poing out what wrong with this access?

---

<div class="post-metadata">

**Author:** ![BenW](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@BenW](https://forums.developer.nvidia.com/u/BenW)\
**Post date:** [July 8, 2008, 12:10am UTC](https://forums.developer.nvidia.com/t/problem-about-coalesced-access/4426/2 "2008-07-08T00:10:51Z")

</div>

That looks like it should coalesce to me…you might want to check that thid and count1 are being set correctly. Also, just to clarify: buf and wot are both float4’s, right? Otherwise I don’t things will coalesce.
