Skip to content

Commit b410a53

Browse files
committed
Fix kind of memcpy
1 parent ac8b222 commit b410a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/runtime/CUDA/memory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static void *MemmoveDeviceToHost(
3131
static void *MemmoveDeviceToDevice(
3232
void *dst, const void *src, std::size_t count) {
3333
// TODO: Use cudaMemcpyAsync when we have support for stream.
34-
CUDA_REPORT_IF_ERROR(cudaMemcpy(dst, src, count, cudaMemcpyHostToDevice));
34+
CUDA_REPORT_IF_ERROR(cudaMemcpy(dst, src, count, cudaMemcpyDeviceToDevice));
3535
return dst;
3636
}
3737

0 commit comments

Comments
 (0)