[flang-commits] [flang] [flang][cuda] Add function to allocate and deallocate device module variable (PR #109213)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Wed Sep 18 17:43:25 PDT 2024
================
@@ -17,14 +17,23 @@ namespace Fortran::runtime::cuda {
extern "C" {
-// Allocate a descriptor in managed.
+/// Allocate a descriptor in managed.
Descriptor *RTDECL(CUFAllocDesciptor)(
std::size_t, const char *sourceFile = nullptr, int sourceLine = 0);
-// Deallocate a descriptor allocated in managed or unified memory.
+/// Deallocate a descriptor allocated in managed or unified memory.
void RTDECL(CUFFreeDesciptor)(
Descriptor *, const char *sourceFile = nullptr, int sourceLine = 0);
+/// Retrieve the device descriptor's pointer from the host one.
----------------
vzakhari wrote:
Please fix the comment. Looks good otherwise.
https://github.com/llvm/llvm-project/pull/109213
More information about the flang-commits
mailing list