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
12static constexpr unsigned kDefaultAllocator = 0;
13
14// Allocator used for CUF
15static constexpr unsigned kPinnedAllocatorPos = 1;
16static constexpr unsigned kDeviceAllocatorPos = 2;
17static constexpr unsigned kManagedAllocatorPos = 3;
18static constexpr unsigned kUnifiedAllocatorPos = 4;
19
20#endif /* FORTRAN_RUNTIME_ALLOCATOR_REGISTRY_CONSTS_H_ */