c++ Programming Glossary: dev_result
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 3 initialize v manually int b 4 4 5 6 7 int result 0 int dev_result v vecptr 0 a v vecptr 1 b v dim 0 3 v dim 1 4 cudaMalloc void.. i sizeof int cudaMemcpyHostToDevice addvecarray 1 1 dev_v dev_result cudaMemcpy result dev_result sizeof int cudaMemcpyDeviceToHost.. addvecarray 1 1 dev_v dev_result cudaMemcpy result dev_result sizeof int cudaMemcpyDeviceToHost printf the result is d n result..
|