blob: 5237069a4c739c5e159c2606751a516fb2e71584 [file] [log] [blame]
//===-- include/flang/Runtime/CUDA/registration.h ---------------*- C -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef FORTRAN_RUNTIME_CUDA_REGISTRATION_H_
#define FORTRAN_RUNTIME_CUDA_REGISTRATION_H_
#include "flang/Runtime/entry-names.h"
#include <cstddef>
#include <cstdint>
namespace Fortran::runtime::cuda {
extern "C" {
/// Register a CUDA module.
void *RTDECL(CUFRegisterModule)(void *data);
/// Register a device function.
void RTDECL(CUFRegisterFunction)(
void **module, const char *fctSym, char *fctName);
/// Register a device variable.
void RTDECL(CUFRegisterVariable)(
void **module, char *varSym, const char *varName, int64_t size);
} // extern "C"
} // namespace Fortran::runtime::cuda
#endif // FORTRAN_RUNTIME_CUDA_REGISTRATION_H_