9#ifndef FORTRAN_RUNTIME_CUDA_POINTER_H_
10#define FORTRAN_RUNTIME_CUDA_POINTER_H_
12#include "flang/Runtime/descriptor-consts.h"
13#include "flang/Runtime/entry-names.h"
15namespace Fortran::runtime::cuda {
20int RTDECL(CUFPointerAllocate)(Descriptor &, int64_t stream = -1,
21 bool hasStat =
false,
const Descriptor *errMsg =
nullptr,
22 const char *sourceFile =
nullptr,
int sourceLine = 0);
26int RTDECL(CUFPointerAllocateSync)(Descriptor &, int64_t stream = -1,
27 bool hasStat =
false,
const Descriptor *errMsg =
nullptr,
28 const char *sourceFile =
nullptr,
int sourceLine = 0);
32int RTDEF(CUFPointerAllocateSource)(Descriptor &pointer,
33 const Descriptor &source, int64_t stream = -1,
bool hasStat =
false,
34 const Descriptor *errMsg =
nullptr,
const char *sourceFile =
nullptr,
39int RTDEF(CUFPointerAllocateSourceSync)(Descriptor &pointer,
40 const Descriptor &source, int64_t stream = -1,
bool hasStat =
false,
41 const Descriptor *errMsg =
nullptr,
const char *sourceFile =
nullptr,