FLANG
registration.h
1//===-- include/flang/Runtime/CUDA/registration.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_REGISTRATION_H_
10#define FORTRAN_RUNTIME_CUDA_REGISTRATION_H_
11
12#include "flang/Runtime/entry-names.h"
13#include <cstddef>
14#include <cstdint>
15
16namespace Fortran::runtime::cuda {
17
18extern "C" {
19
21void *RTDECL(CUFRegisterModule)(void *data);
22
24void RTDECL(CUFRegisterFunction)(
25 void **module, const char *fctSym, char *fctName);
26
28void RTDECL(CUFRegisterVariable)(
29 void **module, char *varSym, const char *varName, int64_t size);
30
31} // extern "C"
32
33} // namespace Fortran::runtime::cuda
34#endif // FORTRAN_RUNTIME_CUDA_REGISTRATION_H_