I’m a super :"> newbie and just start short writings for test using CUDA.
Now I faced a problem…
I just want to allocate 2 dimensional array on the device memory and access values, like this
iArray = 100;
However, I know cudaMalloc function provides only linear memory allocation,
it is hard to map one dimensional array into two dimensional array.
I think it’s very simple to solve, but i can’t find the solution at here and on the programming guide.
I found the “cudaArray” structure and cudaMallocArray function, but I’m not sure this structure and function are suitable for my purpose.
And I can’t access values in a cudaArray object.
Is there any one how to solve this?
I’m really appreciate if you help me… ^^;