[flang-commits] [flang] [flang][cuda] Do not register global constants (PR #118582)

Renaud Kauffmann via flang-commits flang-commits at lists.llvm.org
Wed Dec 4 11:53:31 PST 2024


================
@@ -106,8 +106,7 @@ struct CUFAddConstructor
 
         mlir::func::FuncOp func;
         switch (attr.getValue()) {
-        case cuf::DataAttribute::Device:
-        case cuf::DataAttribute::Constant: {
+        case cuf::DataAttribute::Device: {
----------------
Renaud-K wrote:

```
Device constant data may not be assigned or modified in any device subprogram, but may be modified in host subprogram
```
It seems to be more like a global with some constraints on the device side. 

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


More information about the flang-commits mailing list