¡@

Home 

c++ Programming Glossary: p_d

Cuda version not working while serial working

http://stackoverflow.com/questions/13630817/cuda-version-not-working-while-serial-working

char argv const int N 100 float a_h N a_d Polygon p_h N 2 p_d size_t size N sizeof float size_t size_pol N 2 sizeof Polygon.. cudaMalloc void a_d size cudaError_t err2 cudaMalloc void p_d size_pol for int i 0 i N i a_h i float rand 1000 0.001 cudaMemcpy.. N block_size 0 0 1 cut_poly n_blocks block_size a_d p_d N cudaMemcpy a_h a_d sizeof float N cudaMemcpyDeviceToHost cudaMemcpy..