FLANG
allocator-registry-consts.h
1//===-- include/flang/Runtime/allocator-registry-consts.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_ALLOCATOR_REGISTRY_CONSTS_H_
10#define FORTRAN_RUNTIME_ALLOCATOR_REGISTRY_CONSTS_H_
11
12RT_OFFLOAD_VAR_GROUP_BEGIN
13
14static constexpr unsigned kDefaultAllocator = 0;
15
16// Allocator used for CUF
17static constexpr unsigned kPinnedAllocatorPos = 1;
18static constexpr unsigned kDeviceAllocatorPos = 2;
19static constexpr unsigned kManagedAllocatorPos = 3;
20static constexpr unsigned kUnifiedAllocatorPos = 4;
21
22RT_OFFLOAD_VAR_GROUP_END
23
24#endif /* FORTRAN_RUNTIME_ALLOCATOR_REGISTRY_CONSTS_H_ */