¡@

Home 

c++ Programming Glossary: h_x

Output of cuda program is not what was expected

http://stackoverflow.com/questions/6561005/output-of-cuda-program-is-not-what-was-expected

main const size_t bufferSize 32 const int nObjects 10 char h_x nObjects char d_x 0 cudaMalloc void d_x nObjects sizeof char.. void d_x nObjects sizeof char for int i 0 i nObjects i h_x i NULL cudaMalloc void h_x i bufferSize sizeof char printf h_x.. char for int i 0 i nObjects i h_x i NULL cudaMalloc void h_x i bufferSize sizeof char printf h_x d lx n i unsigned long h_x..