From 2206c20e34157b8292bf0ad4a8d7e1c9be24e670 Mon Sep 17 00:00:00 2001 From: Valentin Clement Date: Fri, 22 Aug 2025 11:49:05 -0700 Subject: [PATCH] [flang][cuda] Remove TODO for descriptor with addendum --- flang-rt/lib/cuda/allocatable.cpp | 7 ------- flang-rt/lib/cuda/pointer.cpp | 7 ------- 2 files changed, 14 deletions(-) diff --git a/flang-rt/lib/cuda/allocatable.cpp b/flang-rt/lib/cuda/allocatable.cpp index c77819e9440d7..ff1a225d66ce9 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 0ed2b0a2b751f..d3f5cfe8e96a1 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)};