File: Makefile.src

package info (click to toggle)
magma 2.9.0%2Bds-3
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 83,556 kB
  • sloc: cpp: 709,115; fortran: 121,916; ansic: 32,343; python: 25,603; f90: 15,208; makefile: 945; xml: 253; csh: 232; sh: 203; perl: 104
file content (271 lines) | stat: -rw-r--r-- 7,276 bytes parent folder | download | duplicates (3)
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
#//////////////////////////////////////////////////////////////////////////////
#   -- MAGMA (version 2.9.0) --
#      Univ. of Tennessee, Knoxville
#      Univ. of California, Berkeley
#      Univ. of Colorado, Denver
#      @date January 2025
#//////////////////////////////////////////////////////////////////////////////

# push previous directory
dir_stack := $(dir_stack) $(cdir)
cdir      := testing
# ----------------------------------------------------------------------


hdr += \
	$(cdir)/testing_z.h		\


# ----------
# BLAS and auxiliary
testing_src += \
	$(cdir)/testing_zaxpy.cpp	\
	$(cdir)/testing_zgemm.cpp	\
	$(cdir)/testing_zgemv.cpp	\
	$(cdir)/testing_zhemm.cpp	\
	$(cdir)/testing_zhemv.cpp	\
	$(cdir)/testing_zherk.cpp	\
	$(cdir)/testing_zher2k.cpp	\
	$(cdir)/testing_zsymv.cpp	\
	$(cdir)/testing_ztrmm.cpp	\
	$(cdir)/testing_ztrmv.cpp	\
	$(cdir)/testing_ztrsm.cpp	\
	$(cdir)/testing_ztrsv.cpp	\
	\
	$(cdir)/testing_zhemm_mgpu.cpp	\
	$(cdir)/testing_zhemv_mgpu.cpp	\
	$(cdir)/testing_zher2k_mgpu.cpp	\
	\
	$(cdir)/testing_blas_z.cpp	\
	$(cdir)/testing_cblas_z.cpp	\
	$(cdir)/testing_zgeadd.cpp	\
        $(cdir)/testing_zgeam.cpp       \
	$(cdir)/testing_zlacpy.cpp	\
	$(cdir)/testing_zlag2c.cpp	\
	$(cdir)/testing_zlange.cpp	\
	$(cdir)/testing_zlanhe.cpp	\
	$(cdir)/testing_zlarfg.cpp	\
	$(cdir)/testing_zlascl.cpp	\
	$(cdir)/testing_zlaset.cpp	\
	$(cdir)/testing_zlaset_band.cpp	\
	$(cdir)/testing_zlat2c.cpp	\
	$(cdir)/testing_znan_inf.cpp	\
	$(cdir)/testing_zprint.cpp	\
	$(cdir)/testing_zsymmetrize.cpp	\
	$(cdir)/testing_zsymmetrize_tiles.cpp	\
	$(cdir)/testing_zswap.cpp	\
	$(cdir)/testing_ztranspose.cpp	\
	$(cdir)/testing_ztrtri_diag.cpp	\
	\
	$(cdir)/testing_auxiliary.cpp	\
	$(cdir)/testing_constants.cpp	\
	$(cdir)/testing_operators.cpp	\
	$(cdir)/testing_parse_opts.cpp	\
	$(cdir)/testing_zgenerate.cpp	\

	#$(cdir)/testing_veclib.cpp	\

# ----------
# Cholesky, GPU interface
testing_src += \
	$(cdir)/testing_zcposv_gpu.cpp	\
	\
	$(cdir)/testing_zposv_gpu.cpp	\
	$(cdir)/testing_zpotrf_gpu.cpp	\
	$(cdir)/testing_zpotf2_gpu.cpp	\
	$(cdir)/testing_zpotri_gpu.cpp	\
	$(cdir)/testing_ztrtri_gpu.cpp	\
	\
	$(cdir)/testing_zpotrf_mgpu.cpp	\

# Cholesky, CPU interface
testing_src += \
	$(cdir)/testing_zposv.cpp	\
	$(cdir)/testing_zpotrf.cpp	\
	$(cdir)/testing_zpotri.cpp	\
	$(cdir)/testing_ztrtri.cpp	\
	$(cdir)/testing_dshposv_gpu.cpp	\

# ----------
# Symmetric indefinite, CPU interface
testing_src += \
	$(cdir)/testing_zhesv.cpp	\
	$(cdir)/testing_zhesv_nopiv_gpu.cpp	\
	$(cdir)/testing_zsysv_nopiv_gpu.cpp	\
	$(cdir)/testing_zhetrf.cpp	\

# ----------
# LU, GPU interface
testing_src += \
	$(cdir)/testing_zcgesv_gpu.cpp	\
	$(cdir)/testing_dxgesv_gpu.cpp	\
	\
	$(cdir)/testing_zgesv_gpu.cpp	\
	$(cdir)/testing_zgetrf_gpu.cpp	\
	$(cdir)/testing_zgetf2_gpu.cpp	\
	$(cdir)/testing_zgetri_gpu.cpp	\
	\
	$(cdir)/testing_zgetrf_mgpu.cpp	\
	\
	$(cdir)/testing_zgbsv_gpu.cpp	\
	$(cdir)/testing_zgbtrf_gpu.cpp	\

# LU, CPU interface
testing_src += \
	$(cdir)/testing_zgesv.cpp	\
	$(cdir)/testing_zgesv_rbt.cpp	\
	$(cdir)/testing_zgetrf.cpp	\

# ----------
# QR and least squares, GPU interface
testing_src += \
	$(cdir)/testing_zcgeqrsv_gpu.cpp	\
	\
	$(cdir)/testing_zgegqr_gpu.cpp	\
	$(cdir)/testing_zgelqf_gpu.cpp	\
	$(cdir)/testing_zgels_gpu.cpp	\
	$(cdir)/testing_zgels3_gpu.cpp	\
	$(cdir)/testing_zgeqp3_gpu.cpp	\
	$(cdir)/testing_zgeqr2_gpu.cpp	\
	$(cdir)/testing_zgeqr2x_gpu.cpp	\
	$(cdir)/testing_zgeqrf_gpu.cpp	\
	$(cdir)/testing_zlarfb_gpu.cpp	\
	$(cdir)/testing_zungqr_gpu.cpp	\
	$(cdir)/testing_zunmql_gpu.cpp	\
	$(cdir)/testing_zunmqr_gpu.cpp	\
	\
	$(cdir)/testing_zgeqrf_mgpu.cpp	\

# QR, CPU interface
testing_src += \
	$(cdir)/testing_zgelqf.cpp	\
	$(cdir)/testing_zgels.cpp       \
	$(cdir)/testing_zgeqlf.cpp	\
	$(cdir)/testing_zgeqp3.cpp	\
	$(cdir)/testing_zgeqrf.cpp	\
        $(cdir)/testing_zgglse.cpp      \
	$(cdir)/testing_zunglq.cpp	\
	$(cdir)/testing_zungqr.cpp	\
	$(cdir)/testing_zunmlq.cpp	\
	$(cdir)/testing_zunmql.cpp	\
	$(cdir)/testing_zunmqr.cpp	\

# ----------
# symmetric eigenvalues, GPU interface
testing_src += \
	$(cdir)/testing_zheevd_gpu.cpp	\
	$(cdir)/testing_zhetrd_gpu.cpp	\
	\
	$(cdir)/testing_zhetrd_mgpu.cpp	\

# symmetric eigenvalues, CPU interface
testing_src += \
	$(cdir)/testing_zheevd.cpp	\
	$(cdir)/testing_zhetrd.cpp	\
	$(cdir)/testing_zheevdx_2stage.cpp	\

# generalized symmetric eigenvalues
testing_src += \
	$(cdir)/testing_zhegst.cpp	\
	$(cdir)/testing_zhegst_gpu.cpp	\
	$(cdir)/testing_zhegvd.cpp	\
	$(cdir)/testing_zhegvdx.cpp	\
	$(cdir)/testing_zhegvdx_2stage.cpp	\

# ----------
# non-symmetric eigenvalues
testing_src += \
	$(cdir)/testing_dgeev.cpp	\
	$(cdir)/testing_zgeev.cpp	\
	$(cdir)/testing_zgehrd.cpp	\

# ----------
# SVD
testing_src += \
	$(cdir)/testing_zgesdd.cpp	\
	$(cdir)/testing_zgesvd.cpp	\
	$(cdir)/testing_zgebrd.cpp	\
	$(cdir)/testing_zungbr.cpp	\
	$(cdir)/testing_zunmbr.cpp	\

# ----------
# batched BLAS, QR, LU, Cholesky
testing_src += \
	$(cdir)/testing_zgeadd_batched.cpp	\
	$(cdir)/testing_zgemm_batched.cpp	\
	$(cdir)/testing_zgemv_batched.cpp	\
	$(cdir)/testing_zhemm_batched.cpp	\
	$(cdir)/testing_zhemv_batched.cpp	\
	$(cdir)/testing_zherk_batched.cpp	\
	$(cdir)/testing_zher2k_batched.cpp	\
	$(cdir)/testing_zlacpy_batched.cpp	\
	$(cdir)/testing_zsyr2k_batched.cpp	\
	$(cdir)/testing_ztrmm_batched.cpp	\
	$(cdir)/testing_ztrsm_batched.cpp	\
	$(cdir)/testing_ztrsv_batched.cpp	\
	\
	$(cdir)/testing_zgeqrf_batched.cpp	\
	\
	$(cdir)/testing_zgbtrf_batched.cpp	\
	$(cdir)/testing_zgbsv_batched.cpp	\
	$(cdir)/testing_zgesv_batched.cpp	\
	$(cdir)/testing_zgesv_nopiv_batched.cpp	\
	$(cdir)/testing_zgetrf_batched.cpp	\
	$(cdir)/testing_zgetrf_nopiv_batched.cpp	\
	$(cdir)/testing_zgetri_batched.cpp	\
	\
	$(cdir)/testing_zposv_batched.cpp	\
	$(cdir)/testing_zpotrf_batched.cpp	\

# ----------
# vbatched BLAS, QR, LU, Cholesky
testing_src += \
	$(cdir)/testing_zgemm_vbatched.cpp	\
	$(cdir)/testing_zgemv_vbatched.cpp	\
	$(cdir)/testing_zhemm_vbatched.cpp	\
	$(cdir)/testing_zhemv_vbatched.cpp	\
	$(cdir)/testing_zherk_vbatched.cpp	\
	$(cdir)/testing_zher2k_vbatched.cpp	\
	$(cdir)/testing_zsyrk_vbatched.cpp	\
	$(cdir)/testing_zsyr2k_vbatched.cpp	\
	$(cdir)/testing_ztrmm_vbatched.cpp	\
	$(cdir)/testing_ztrsm_vbatched.cpp	\
	\
	$(cdir)/testing_zpotrf_vbatched.cpp	\
	$(cdir)/testing_zgetrf_vbatched.cpp	\

# ----------
# half precision files
testing_src += \
	$(cdir)/testing_hgemm.cpp	        \
	$(cdir)/testing_hgemm_batched.cpp	\
	$(cdir)/testing_sgemm_fp16.cpp	\

# ----------
ifeq ($(FORT), pgfortran)
	# Does this need fortran_thunking.$(o_ext) ?
	testing_src += \
		$(cdir)/testing_zgetrf_gpu_f.cuf
else
	testing_src += \
		$(cdir)/testing_zgetrf_gpu_f.F90	\
		$(cdir)/testing_zgetrf_f.f90
endif

# fortran_thunking.c is provided by CUDA
$(cdir)/fortran_thunking.$(o_ext) : $(CUDADIR)/src/fortran_thunking.c
	$(CC) $(CFLAGS) $(INC) -c $< -o $@


# ----------------------------------------
# utilities library
libtest_src := \
	$(cdir)/magma_util.cpp		\
	$(cdir)/magma_zutil.cpp		\
	$(cdir)/magma_zgesvd_check.cpp	\
	$(cdir)/magma_generate.cpp		\

# ----------------------------------------------------------------------
# pop first directory
cdir      := $(firstword $(dir_stack))
dir_stack := $(wordlist 2, $(words $(dir_stack)), $(dir_stack))