[flang-commits] [flang] [flang][cuda] Restrict managed data transfers to whole-array assignments (PR #212593)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Tue Jul 28 18:21:53 PDT 2026


================
@@ -634,6 +634,8 @@ end subroutine
 ! CHECK-LABEL: func.func @_QPsub33
 ! CHECK-NOT: cuf.data_transfer 
 
+! Only a whole managed array is initialized on the device; a section is assigned on
+! the host (CUDA Fortran Programming Guide 3.4.1).
----------------
clementval wrote:

That's the whole array in this case. 

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


More information about the flang-commits mailing list