summaryrefslogtreecommitdiffstats
path: root/openmp/offload/src/offload_orsl.h
blob: cdb86f913a2344e659606e0e4778ee2d637944f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//===----------------------------------------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.txt for details.
//
//===----------------------------------------------------------------------===//


#ifndef OFFLOAD_ORSL_H_INCLUDED
#define OFFLOAD_ORSL_H_INCLUDED

// ORSL interface
namespace ORSL {

extern void init();

extern bool reserve(int device);
extern bool try_reserve(int device);
extern void release(int device);

} // namespace ORSL

#endif // OFFLOAD_ORSL_H_INCLUDED
OpenPOWER on IntegriCloud