I\'m new to CUDA programming. When I try to write into the device memory, I get this error:
terminate called after throwing an instance of \'thrust::syste