# 64k Limit

**URL:** <https://forums.developer.nvidia.com/t/64k-limit/1243>\
**Category:** CUDA Programming and Performance\
**Created:** [August 2, 2007, 6:34am UTC](https://forums.developer.nvidia.com/t/64k-limit/1243 "2007-08-02T06:34:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe01](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Joe01](https://forums.developer.nvidia.com/u/Joe01)\
**Post date:** [August 2, 2007, 6:34am UTC](https://forums.developer.nvidia.com/t/64k-limit/1243/1 "2007-08-02T06:34:11Z")

</div>

Hello,

I searched the forums for this topic but I couldn’t find anything.

I have arrays that are bigger than 64k, and when I try to access something beyond the 64k I get an access violation.

Any help is greatly appreciated.

Thanks,  
Joe

grid G;

G.A = NULL;  
G.A = (float\*) malloc((1024\*(1024+1))\*sizeof(float));

typedef struct {

```
float* A;

```

} grid;

---

<div class="post-metadata">

**Author:** ![Joe01](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Joe01](https://forums.developer.nvidia.com/u/Joe01)\
**Post date:** [August 3, 2007, 10:14pm UTC](https://forums.developer.nvidia.com/t/64k-limit/1243/2 "2007-08-03T22:14:53Z")

</div>

I’m in the process of converting everything into two dimensional arrays, I think this will solve the problem.
