[flang][cuda] Fix descriptor sync in data transfer (#129333)
The destination descriptor on the device needs to be sync with the destination descriptor on the host, not the src one.
This commit is contained in:
committed by
GitHub
parent
b3e05d58b9
commit
ae84717d11
@@ -147,7 +147,7 @@ void RTDECL(CUFDataTransferGlobalDescDesc)(Descriptor *dstDesc,
|
||||
void *deviceAddr{
|
||||
RTNAME(CUFGetDeviceAddress)((void *)dstDesc, sourceFile, sourceLine)};
|
||||
RTNAME(CUFDescriptorSync)
|
||||
((Descriptor *)deviceAddr, srcDesc, sourceFile, sourceLine);
|
||||
((Descriptor *)deviceAddr, dstDesc, sourceFile, sourceLine);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user