Skip to content

Commit 61405b4

Browse files
authored
Call CUFAllocatableAllocate with stream
1 parent a7409db commit 61405b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/runtime/CUDA/allocatable.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ int RTDEF(CUFAllocatableAllocateSync)(Descriptor &desc, long stream,
5858
int RTDEF(CUFAllocatableAllocateSource)(Descriptor &alloc,
5959
const Descriptor &source, long stream, bool hasStat,
6060
const Descriptor *errMsg, const char *sourceFile, int sourceLine) {
61-
int stat{RTNAME(AllocatableAllocate)(
62-
alloc, hasStat, errMsg, sourceFile, sourceLine)};
61+
int stat{RTNAME(CUFAllocatableAllocate)(
62+
alloc, stream, hasStat, errMsg, sourceFile, sourceLine)};
6363
if (stat == StatOk) {
6464
Terminator terminator{sourceFile, sourceLine};
6565
Fortran::runtime::DoFromSourceAssign(

0 commit comments

Comments
 (0)