Skip to content

Commit

Permalink
copy data back to gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
mblum94 committed Oct 17, 2023
1 parent 30cb5a9 commit dd88d07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/num/gpuops.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ static void* cuda_malloc_wrapper(size_t size)
if(0 != access) {

CUDA_ERROR(cudaMemAdvise(ptr, size, cudaMemAdviseSetAccessedBy, cuda_device_id));
CUDA_ERROR(cudaMemAdvise(ptr, size, cudaMemAdviseSetPreferredLocation, cuda_device_id));
CUDA_ERROR(cudaMemPrefetchAsync(ptr, size, cuda_device_id, cuda_get_stream()));
}

Expand Down

0 comments on commit dd88d07

Please sign in to comment.