-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathcunumeric_c.h
80 lines (70 loc) · 1.85 KB
/
cunumeric_c.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/* Copyright 2021 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef __CUNUMERIC_C_H__
#define __CUNUMERIC_C_H__
#include "legate_preamble.h"
// Match these to CuNumericOpCode in cunumeric/config.py
enum CuNumericOpCode {
_CUNUMERIC_OP_CODE_BASE = 0,
CUNUMERIC_ARANGE,
CUNUMERIC_BINARY_OP,
CUNUMERIC_BINARY_RED,
CUNUMERIC_BINCOUNT,
CUNUMERIC_CONVERT,
CUNUMERIC_CONVOLVE,
CUNUMERIC_DIAG,
CUNUMERIC_DOT,
CUNUMERIC_EYE,
CUNUMERIC_FILL,
CUNUMERIC_FLIP,
CUNUMERIC_MATMUL,
CUNUMERIC_MATVECMUL,
CUNUMERIC_NONZERO,
CUNUMERIC_RAND,
CUNUMERIC_READ,
CUNUMERIC_SCALAR_UNARY_RED,
CUNUMERIC_TILE,
CUNUMERIC_TRANSPOSE,
CUNUMERIC_TRILU,
CUNUMERIC_UNARY_OP,
CUNUMERIC_UNARY_RED,
CUNUMERIC_WHERE,
CUNUMERIC_WRITE,
CUNUMERIC_FUSED_OP,
};
// Match these to CuNumericRedopCode in cunumeric/config.py
enum CuNumericRedopID {
CUNUMERIC_ARGMAX_REDOP = 1,
CUNUMERIC_ARGMIN_REDOP = 2,
};
// Match these to CuNumericTunable in cunumeric/config.py
enum CuNumericTunable {
CUNUMERIC_TUNABLE_NUM_GPUS = 1,
CUNUMERIC_TUNABLE_MAX_EAGER_VOLUME = 2,
};
enum CuNumericBounds {
CUNUMERIC_MAX_MAPPERS = 1,
CUNUMERIC_MAX_REDOPS = 1024,
CUNUMERIC_MAX_TASKS = 1048576,
};
#ifdef __cplusplus
extern "C" {
#endif
void cunumeric_perform_registration();
#ifdef __cplusplus
}
#endif
#endif // __CUNUMERIC_C_H__