-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathcunumeric.mk
104 lines (100 loc) · 4.85 KB
/
cunumeric.mk
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# 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.
#
# List all the application source files that need OpenMP separately
# since we have to add the -fopenmp flag to CC_FLAGS for them
GEN_CPU_SRC += cunumeric/ternary/where.cc \
cunumeric/binary/binary_op.cc \
cunumeric/fused/fused_op.cc \
cunumeric/binary/binary_red.cc \
cunumeric/unary/scalar_unary_red.cc \
cunumeric/unary/unary_op.cc \
cunumeric/unary/unary_red.cc \
cunumeric/unary/convert.cc \
cunumeric/nullary/arange.cc \
cunumeric/nullary/eye.cc \
cunumeric/nullary/fill.cc \
cunumeric/item/read.cc \
cunumeric/item/write.cc \
cunumeric/matrix/diag.cc \
cunumeric/matrix/matmul.cc \
cunumeric/matrix/matvecmul.cc \
cunumeric/matrix/dot.cc \
cunumeric/matrix/tile.cc \
cunumeric/matrix/transpose.cc \
cunumeric/matrix/trilu.cc \
cunumeric/matrix/util.cc \
cunumeric/random/rand.cc \
cunumeric/search/nonzero.cc \
cunumeric/stat/bincount.cc \
cunumeric/convolution/convolve.cc \
cunumeric/transform/flip.cc \
cunumeric/arg.cc \
cunumeric/mapper.cc
ifeq ($(strip $(USE_OPENMP)),1)
GEN_CPU_SRC += cunumeric/ternary/where_omp.cc \
cunumeric/binary/binary_op_omp.cc \
cunumeric/fused/fused_op_omp.cc \
cunumeric/binary/binary_red_omp.cc \
cunumeric/unary/unary_op_omp.cc \
cunumeric/unary/scalar_unary_red_omp.cc \
cunumeric/unary/unary_red_omp.cc \
cunumeric/unary/convert_omp.cc \
cunumeric/nullary/arange_omp.cc \
cunumeric/nullary/eye_omp.cc \
cunumeric/nullary/fill_omp.cc \
cunumeric/matrix/diag_omp.cc \
cunumeric/matrix/matmul_omp.cc \
cunumeric/matrix/matvecmul_omp.cc \
cunumeric/matrix/dot_omp.cc \
cunumeric/matrix/tile_omp.cc \
cunumeric/matrix/transpose_omp.cc \
cunumeric/matrix/trilu_omp.cc \
cunumeric/matrix/util_omp.cc \
cunumeric/random/rand_omp.cc \
cunumeric/search/nonzero_omp.cc \
cunumeric/stat/bincount_omp.cc \
cunumeric/convolution/convolve_omp.cc \
cunumeric/transform/flip_omp.cc
endif
GEN_CPU_SRC += cunumeric/cunumeric.cc # This must always be the last file!
# It guarantees we do our registration callback
# only after all task variants are recorded
GEN_GPU_SRC += cunumeric/ternary/where.cu \
cunumeric/binary/binary_op.cu \
cunumeric/fused/fused_op.cu \
cunumeric/binary/binary_red.cu \
cunumeric/unary/scalar_unary_red.cu \
cunumeric/unary/unary_red.cu \
cunumeric/unary/unary_op.cu \
cunumeric/unary/convert.cu \
cunumeric/nullary/arange.cu \
cunumeric/nullary/eye.cu \
cunumeric/nullary/fill.cu \
cunumeric/item/read.cu \
cunumeric/item/write.cu \
cunumeric/matrix/diag.cu \
cunumeric/matrix/matmul.cu \
cunumeric/matrix/matvecmul.cu \
cunumeric/matrix/dot.cu \
cunumeric/matrix/tile.cu \
cunumeric/matrix/transpose.cu \
cunumeric/matrix/trilu.cu \
cunumeric/random/rand.cu \
cunumeric/search/nonzero.cu \
cunumeric/stat/bincount.cu \
cunumeric/convolution/convolve.cu \
cunumeric/transform/flip.cu \
cunumeric/cudalibs.cu \
cunumeric/cunumeric.cu