[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:
Valentin Clement (バレンタイン クレメン)
2025-02-28 14:52:33 -08:00
committed by GitHub
parent b3e05d58b9
commit ae84717d11

View File

@@ -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);
}
}
}