# How to allocate double pointer in CUDA programming?

**URL:** <https://forums.developer.nvidia.com/t/how-to-allocate-double-pointer-in-cuda-programming/77299>\
**Category:** CUDA Programming and Performance\
**Created:** [July 1, 2019, 5:10am UTC](https://forums.developer.nvidia.com/t/how-to-allocate-double-pointer-in-cuda-programming/77299 "2019-07-01T05:10:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cudaMancpy](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@cudaMancpy](https://forums.developer.nvidia.com/u/cudaMancpy)\
**Post date:** [July 1, 2019, 5:10am UTC](https://forums.developer.nvidia.com/t/how-to-allocate-double-pointer-in-cuda-programming/77299/1 "2019-07-01T05:10:01Z")

</div>

Hello.

I want to know double point allocation.

for example,

int \*first ← size 100 this is separated to range 50, 30, and 20.  
int \*\*second ← size 3 this pointer has 50’s start point, 30’s start point, and 20’s start point.

if this code is worked in C or C++, it is easy.

but CUDA allocation system is a little bit difficult for me, so I can’t imagine…

please help me.

add)  
I found the guide!  
[https://stackoverflow.com/questions/26111794/how-to-use-pointer-to-pointer-in-cuda](https://stackoverflow.com/questions/26111794/how-to-use-pointer-to-pointer-in-cuda)
