When you call cudaDeviceReset() does that make any thrust::device_vectors in scope unusable?
thrust::host_vector<int> h_intVec;
thrust::device_vector<int> d_intVec;
... set the host vector to something...
d_intVec = h_intVec;
... do some GPU stuff ...
h_intVec = d_intVec;
cudaDeviceReset();
d_intVec = h_intVec;
I seem to get some back end error when I try to refill the device_vector is their something I don't know about going on?
Aucun commentaire:
Enregistrer un commentaire