[flang-commits] [flang] [flang][CUF] fix missing header after #112188 (PR #118993)

via flang-commits flang-commits at lists.llvm.org
Fri Dec 6 08:06:23 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-runtime

Author: None (jeanPerier)

<details>
<summary>Changes</summary>

Otherwise, builds with `-DFLANG_CUF_RUNTIME` hits:

```
runtime/CUDA/descriptor.cpp:44:24: error: invalid use of incomplete type 'const class Fortran::runtime::Descriptor'
   44 |   std::size_t count{src->SizeInBytes()};
```

---
Full diff: https://github.com/llvm/llvm-project/pull/118993.diff


1 Files Affected:

- (modified) flang/runtime/CUDA/descriptor.cpp (+1) 


``````````diff
diff --git a/flang/runtime/CUDA/descriptor.cpp b/flang/runtime/CUDA/descriptor.cpp
index f1feb00941aa8a..a42ccea3176051 100644
--- a/flang/runtime/CUDA/descriptor.cpp
+++ b/flang/runtime/CUDA/descriptor.cpp
@@ -10,6 +10,7 @@
 #include "../terminator.h"
 #include "flang/Runtime/CUDA/allocator.h"
 #include "flang/Runtime/CUDA/common.h"
+#include "flang/Runtime/descriptor.h"
 
 #include "cuda_runtime.h"
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/118993


More information about the flang-commits mailing list