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