FLANG
Support.h
1//===-- Support.h - CUDA support runtime functions --------------*- 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_OPTIMIZER_BUILDER_RUNTIME_CUDA_SUPPORT_H_
10#define FORTRAN_OPTIMIZER_BUILDER_RUNTIME_CUDA_SUPPORT_H_
11
12namespace mlir {
13class Location;
14class Value;
15} // namespace mlir
16
17namespace fir {
18class FirOpBuilder;
19}
20
21namespace fir::runtime::cuda {
22
24void genCUDADeviceSynchronize(fir::FirOpBuilder &builder, mlir::Location loc);
25
28mlir::Value genDeviceIsActive(fir::FirOpBuilder &builder, mlir::Location loc);
29
30} // namespace fir::runtime::cuda
31
32#endif // FORTRAN_OPTIMIZER_BUILDER_RUNTIME_CUDA_SUPPORT_H_
Definition FIRBuilder.h:66
Definition AbstractConverter.h:37
Definition AbstractConverter.h:32