FLANG
stream.h
1//===-- include/flang/Runtime/CUDA/stream.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_STREAM_H_
10#define FORTRAN_RUNTIME_CUDA_STREAM_H_
11
12#include "common.h"
13#include "flang/Runtime/descriptor-consts.h"
14#include "flang/Runtime/entry-names.h"
15
16#include "cuda_runtime.h"
17
18namespace Fortran::runtime::cuda {
19
20extern "C" {
21
22int RTDECL(CUFSetDefaultStream)(cudaStream_t);
23cudaStream_t RTDECL(CUFGetDefaultStream)();
24int RTDECL(CUFStreamSynchronize)(cudaStream_t);
25int RTDECL(CUFStreamSynchronizeNull)();
26int RTDECL(CUFStreamDestroy)(cudaStream_t);
27}
28
29} // namespace Fortran::runtime::cuda
30#endif // FORTRAN_RUNTIME_CUDA_STREAM_H_