[flang-commits] [flang] [flang][cuda] Add entry point for alloc/free and simple copy (PR #109867)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Tue Sep 24 14:36:08 PDT 2024


================
@@ -17,12 +17,24 @@ namespace Fortran::runtime::cuda {
 
 extern "C" {
 
+/// Allocate memory on the device.
+void *RTDECL(CUFMemAlloc)(
----------------
clementval wrote:

This is initially for device only. For managed/unified right now they are only supported through allocators. I guess when we will have broader support we can either have separate entry points of pass the information to these functions. 

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


More information about the flang-commits mailing list