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

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


Author: jeanPerier
Date: 2024-12-06T17:22:47+01:00
New Revision: d6ec7c82f383ae4268f350f4d2e267af45fae8c0

URL: https://github.com/llvm/llvm-project/commit/d6ec7c82f383ae4268f350f4d2e267af45fae8c0
DIFF: https://github.com/llvm/llvm-project/commit/d6ec7c82f383ae4268f350f4d2e267af45fae8c0.diff

LOG: [flang][CUF] fix missing header after #112188 (#118993)

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()};
```

Added: 
    

Modified: 
    flang/runtime/CUDA/descriptor.cpp

Removed: 
    


################################################################################
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"
 


        


More information about the flang-commits mailing list