9#ifndef FORTRAN_RUNTIME_CUDA_DESCRIPTOR_H_
10#define FORTRAN_RUNTIME_CUDA_DESCRIPTOR_H_
12#include "flang/Runtime/descriptor-consts.h"
13#include "flang/Runtime/entry-names.h"
16namespace Fortran::runtime::cuda {
21Descriptor *RTDECL(CUFAllocDescriptor)(
22 std::size_t,
const char *sourceFile =
nullptr,
int sourceLine = 0);
25void RTDECL(CUFFreeDescriptor)(
26 Descriptor *,
const char *sourceFile =
nullptr,
int sourceLine = 0);
29void *RTDECL(CUFGetDeviceAddress)(
30 void *hostPtr,
const char *sourceFile =
nullptr,
int sourceLine = 0);
33void RTDECL(CUFDescriptorSync)(Descriptor *dst,
const Descriptor *src,
34 const char *sourceFile =
nullptr,
int sourceLine = 0);
37void RTDECL(CUFSyncGlobalDescriptor)(
38 void *hostPtr,
const char *sourceFile =
nullptr,
int sourceLine = 0);