Skip to content

Commit be67347

Browse files
committed
fix call
1 parent e4c7e31 commit be67347

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

flang/runtime/CUDA/allocatable.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ int RTDEF(CUFAllocatableAllocate)(Descriptor &desc, bool hasStat,
3838
if (stat == StatOk) {
3939
void *deviceAddr{
4040
RTNAME(CUFGetDeviceAddress)((void *)&desc, sourceFile, sourceLine)};
41+
printf("Addresses: host %p device %p", &desc, deviceAddr);
4142
RTNAME(CUFDescriptorSync)
4243
((Descriptor *)deviceAddr, &desc, sourceFile, sourceLine);
4344
}

flang/runtime/CUDA/memory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void RTDECL(CUFDataTransferDescDesc)(Descriptor *dstDesc, Descriptor *srcDesc,
121121
memmoveFct = &MemmoveDeviceToDevice;
122122
}
123123
Fortran::runtime::Assign(
124-
dstDesc, srcDesc, terminator, MaybeReallocate, memmoveFct);
124+
*dstDesc, *srcDesc, terminator, MaybeReallocate, memmoveFct);
125125
}
126126
}
127127
} // namespace Fortran::runtime::cuda

0 commit comments

Comments
 (0)