diff options
| author | Valentin Clement (バレンタイン クレメン) <clementval@gmail.com> | 2025-08-22 13:36:15 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-22 13:36:15 -0700 |
| commit | ea8994b5ac313d19dbd979afa7560b8b4e64f129 (patch) | |
| tree | feee29ca53c936bc58ac12e513ce51ba46fcd13d /flang-rt | |
| parent | ffe3768dfbbb3a598482d1f4a3dce4f02446340d (diff) | |
[flang][cuda] Remove TODO for descriptor with addendum (#155012)users/bwendling/cfi-salt-libclang
Addendum is allocated as part of the descriptor so there is no need for
extra care.
Diffstat (limited to 'flang-rt')
| -rw-r--r-- | flang-rt/lib/cuda/allocatable.cpp | 7 | ||||
| -rw-r--r-- | flang-rt/lib/cuda/pointer.cpp | 7 |
2 files changed, 0 insertions, 14 deletions
diff --git a/flang-rt/lib/cuda/allocatable.cpp b/flang-rt/lib/cuda/allocatable.cpp index c77819e9440d..ff1a225d66ce 100644 --- a/flang-rt/lib/cuda/allocatable.cpp +++ b/flang-rt/lib/cuda/allocatable.cpp @@ -44,13 +44,6 @@ int RTDEF(CUFAllocatableAllocateSync)(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()) { - Terminator terminator{sourceFile, sourceLine}; - // TODO: This require a bit more work to set the correct type descriptor - // address - terminator.Crash( - "not yet implemented: CUDA descriptor allocation with addendum"); - } // Perform the standard allocation. int stat{RTNAME(AllocatableAllocate)( desc, stream, hasStat, errMsg, sourceFile, sourceLine)}; diff --git a/flang-rt/lib/cuda/pointer.cpp b/flang-rt/lib/cuda/pointer.cpp index 0ed2b0a2b751..d3f5cfe8e96a 100644 --- a/flang-rt/lib/cuda/pointer.cpp +++ b/flang-rt/lib/cuda/pointer.cpp @@ -25,13 +25,6 @@ RT_EXT_API_GROUP_BEGIN int RTDEF(CUFPointerAllocate)(Descriptor &desc, int64_t *stream, bool *pinned, bool hasStat, const Descriptor *errMsg, const char *sourceFile, int sourceLine) { - if (desc.HasAddendum()) { - Terminator terminator{sourceFile, sourceLine}; - // TODO: This require a bit more work to set the correct type descriptor - // address - terminator.Crash( - "not yet implemented: CUDA descriptor allocation with addendum"); - } // Perform the standard allocation. int stat{ RTNAME(PointerAllocate)(desc, hasStat, errMsg, sourceFile, sourceLine)}; |
