diff options
| author | Valentin Clement (バレンタイン クレメン) <clementval@gmail.com> | 2025-05-01 17:41:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-01 17:41:44 -0700 |
| commit | 9b6b144438ccf371e51b578e642f2ce5d3aa89c8 (patch) | |
| tree | 2bd47bfad7b721e8b4160d8743d5e96b82a44771 /flang-rt/lib/cuda/allocatable.cpp | |
| parent | 7f922f1400f00a73d1618e3f17556704c6b9436d (diff) | |
Revert "[flang][cuda] Use a reference for asyncObject" (#138221)
Reverts llvm/llvm-project#138186
Diffstat (limited to 'flang-rt/lib/cuda/allocatable.cpp')
| -rw-r--r-- | flang-rt/lib/cuda/allocatable.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/flang-rt/lib/cuda/allocatable.cpp b/flang-rt/lib/cuda/allocatable.cpp index c77819e9440d..432974d18a3e 100644 --- a/flang-rt/lib/cuda/allocatable.cpp +++ b/flang-rt/lib/cuda/allocatable.cpp @@ -23,7 +23,7 @@ namespace Fortran::runtime::cuda { extern "C" { RT_EXT_API_GROUP_BEGIN -int RTDEF(CUFAllocatableAllocateSync)(Descriptor &desc, int64_t *stream, +int RTDEF(CUFAllocatableAllocateSync)(Descriptor &desc, int64_t stream, bool *pinned, bool hasStat, const Descriptor *errMsg, const char *sourceFile, int sourceLine) { int stat{RTNAME(CUFAllocatableAllocate)( @@ -41,7 +41,7 @@ int RTDEF(CUFAllocatableAllocateSync)(Descriptor &desc, int64_t *stream, return stat; } -int RTDEF(CUFAllocatableAllocate)(Descriptor &desc, int64_t *stream, +int RTDEF(CUFAllocatableAllocate)(Descriptor &desc, int64_t stream, bool *pinned, bool hasStat, const Descriptor *errMsg, const char *sourceFile, int sourceLine) { if (desc.HasAddendum()) { @@ -63,7 +63,7 @@ int RTDEF(CUFAllocatableAllocate)(Descriptor &desc, int64_t *stream, } int RTDEF(CUFAllocatableAllocateSource)(Descriptor &alloc, - const Descriptor &source, int64_t *stream, bool *pinned, bool hasStat, + const Descriptor &source, int64_t stream, bool *pinned, bool hasStat, const Descriptor *errMsg, const char *sourceFile, int sourceLine) { int stat{RTNAME(CUFAllocatableAllocate)( alloc, stream, pinned, hasStat, errMsg, sourceFile, sourceLine)}; @@ -76,7 +76,7 @@ int RTDEF(CUFAllocatableAllocateSource)(Descriptor &alloc, } int RTDEF(CUFAllocatableAllocateSourceSync)(Descriptor &alloc, - const Descriptor &source, int64_t *stream, bool *pinned, bool hasStat, + const Descriptor &source, int64_t stream, bool *pinned, bool hasStat, const Descriptor *errMsg, const char *sourceFile, int sourceLine) { int stat{RTNAME(CUFAllocatableAllocateSync)( alloc, stream, pinned, hasStat, errMsg, sourceFile, sourceLine)}; |
