Any ideas?
cudaMemcpy() takes a size in bytes (not in items, as it does not know the type of the items).
BTW your code as you are showing it here would never print “N = 20”, as the value of test_items is 0.
Any ideas?
cudaMemcpy() takes a size in bytes (not in items, as it does not know the type of the items).
BTW your code as you are showing it here would never print “N = 20”, as the value of test_items is 0.