xref: /llvm-project/offload/DeviceRTL/include/Workshare.h (revision 1a478a69bc4f2781c14fd045c202838786fb9062)
1 //===-------- Workshare.h - OpenMP Workshare interface ------------ 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 //
10 //===----------------------------------------------------------------------===//
11 
12 #ifndef OMPTARGET_WORKSHARE_H
13 #define OMPTARGET_WORKSHARE_H
14 
15 #pragma omp begin declare target device_type(nohost)
16 
17 namespace ompx {
18 
19 namespace workshare {
20 
21 /// Initialize the worksharing machinery.
22 void init(bool IsSPMD);
23 
24 } // namespace workshare
25 
26 } // namespace ompx
27 
28 #pragma omp end declare target
29 
30 #endif
31