@@ -22,8 +22,9 @@ namespace Fortran::runtime::cuda {
2222extern " C" {
2323RT_EXT_API_GROUP_BEGIN
2424
25- int RTDEF (CUFAllocatableAllocate)(Descriptor &desc, long stream, bool hasStat,
26- const Descriptor *errMsg, const char *sourceFile, int sourceLine) {
25+ int RTDEF (CUFAllocatableAllocateSync)(Descriptor &desc, int64_t stream,
26+ bool hasStat, const Descriptor *errMsg, const char *sourceFile,
27+ int sourceLine) {
2728 int stat{RTNAME (CUFAllocatableAllocate)(
2829 desc, stream, hasStat, errMsg, sourceFile, sourceLine)};
2930#ifndef RT_DEVICE_COMPILATION
@@ -39,7 +40,7 @@ int RTDEF(CUFAllocatableAllocate)(Descriptor &desc, long stream, bool hasStat,
3940 return stat;
4041}
4142
42- int RTDEF (CUFAllocatableAllocateSync )(Descriptor &desc, long stream,
43+ int RTDEF (CUFAllocatableAllocate )(Descriptor &desc, int64_t stream,
4344 bool hasStat, const Descriptor *errMsg, const char *sourceFile,
4445 int sourceLine) {
4546 if (desc.HasAddendum ()) {
@@ -56,7 +57,7 @@ int RTDEF(CUFAllocatableAllocateSync)(Descriptor &desc, long stream,
5657}
5758
5859int RTDEF (CUFAllocatableAllocateSource)(Descriptor &alloc,
59- const Descriptor &source, long stream, bool hasStat,
60+ const Descriptor &source, int64_t stream, bool hasStat,
6061 const Descriptor *errMsg, const char *sourceFile, int sourceLine) {
6162 int stat{RTNAME (CUFAllocatableAllocate)(
6263 alloc, stream, hasStat, errMsg, sourceFile, sourceLine)};
@@ -69,10 +70,10 @@ int RTDEF(CUFAllocatableAllocateSource)(Descriptor &alloc,
6970}
7071
7172int RTDEF (CUFAllocatableAllocateSourceSync)(Descriptor &alloc,
72- const Descriptor &source, long stream, bool hasStat,
73+ const Descriptor &source, int64_t stream, bool hasStat,
7374 const Descriptor *errMsg, const char *sourceFile, int sourceLine) {
74- int stat{RTNAME (AllocatableAllocate )(
75- alloc, hasStat, errMsg, sourceFile, sourceLine)};
75+ int stat{RTNAME (CUFAllocatableAllocateSync )(
76+ alloc, stream, hasStat, errMsg, sourceFile, sourceLine)};
7677 if (stat == StatOk) {
7778 Terminator terminator{sourceFile, sourceLine};
7879 Fortran::runtime::DoFromSourceAssign (
0 commit comments