Skip to content

Commit

Permalink
(hotfix)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtian0 committed Jun 14, 2023
1 parent cd72e15 commit bd6e8f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils2/memseg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ void pszmem_d2h_cudaasync(Mem* m, void* stream)

void pszmem_device_deepcpy_cuda(Mem* dst, Mem* src)
{
cudaMemcpy(src->h, dst->d, dst->bytes, cudaMemcpyDeviceToDevice);
cudaMemcpy(dst->h, src->d, src->bytes, cudaMemcpyDeviceToDevice);
}

void pszmem_host_deepcpy_cuda(Mem* dst, Mem* src)
{
cudaMemcpy(src->h, dst->d, dst->bytes, cudaMemcpyHostToHost);
cudaMemcpy(dst->h, src->d, src->bytes, cudaMemcpyHostToHost);
}

void pszmem_fromfile(const char* fname, Mem* m)
Expand Down

0 comments on commit bd6e8f0

Please sign in to comment.