¡@

Home 

c++ Programming Glossary: vecarray

How to pass a C++ class with array of pointers to CUDA?

http://stackoverflow.com/questions/14790999/how-to-pass-a-c-class-with-array-of-pointers-to-cuda

how I can achieve this goal I wrote a simple class class vecarray public int vecptr N array of pointers pointing to array int.. store length of each array pointed to __device__ __host__ vecarray constructor __device__ __host__ int sum sum up all the elements.. sum up all the elements in the array being pointed to vecarray vecarray for int i 0 i N i vecptr i NULL dim i 0 int vecarray..