FLANG
pointer.h
1//===-- include/flang/Runtime/CUDA/pointer.h --------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef FORTRAN_RUNTIME_CUDA_POINTER_H_
10#define FORTRAN_RUNTIME_CUDA_POINTER_H_
11
12#include "flang/Runtime/descriptor-consts.h"
13#include "flang/Runtime/entry-names.h"
14
15namespace Fortran::runtime::cuda {
16
17extern "C" {
18
20int RTDECL(CUFPointerAllocate)(Descriptor &, int64_t stream = -1,
21 bool hasStat = false, const Descriptor *errMsg = nullptr,
22 const char *sourceFile = nullptr, int sourceLine = 0);
23
26int RTDECL(CUFPointerAllocateSync)(Descriptor &, int64_t stream = -1,
27 bool hasStat = false, const Descriptor *errMsg = nullptr,
28 const char *sourceFile = nullptr, int sourceLine = 0);
29
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,
35 int sourceLine = 0);
36
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,
42 int sourceLine = 0);
43
44} // extern "C"
45
46} // namespace Fortran::runtime::cuda
47#endif // FORTRAN_RUNTIME_CUDA_POINTER_H_