-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
596 lines (554 loc) · 17.3 KB
/
Makefile
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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
##****************************************************************************************
##
## Copyright (c) 2015-2020, Yoshifumi Nakamura <nakamura@riken.jp>
## Copyright (c) 2015-2020, Yuta Mukai <mukai.yuta@fujitsu.com>
## Copyright (c) 2018-2020, Ken-Ichi Ishikawa <ishikawa@theo.phys.sci.hirosima-u.ac.jp>
## Copyright (c) 2019-2020, Issaku Kanamori <kanamori-i@riken.jp>
##
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are
## met:
##
## * Redistributions of source code must retain the above copyright
## notice, this list of conditions and the following disclaimer.
##
## * Redistributions in binary form must reproduce the above copyright
## notice, this list of conditions and the following disclaimer listed
## in this license in the documentation and/or other materials
## provided with the distribution.
##
## * Neither the name of the copyright holders nor the names of its
## contributors may be used to endorse or promote products derived from
## this software without specific prior written permission.
##
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
##
##----------------------------------------------------------------------------------------
## ACKNOWLEDGMENT
##
## This software has been developed in a co-design working group for the lattice QCD
## supported by MEXT's programs for the Development and Improvement for the Next
## Generation Ultra High-Speed Computer System, under its Subsidies for Operating the
## Specific Advanced Large Research Facilities, and Priority Issue 9
## (Elucidation of the Fundamental Laws and Evolution of the Universe) to be tackled by
## using the Supercomputer Fugaku.
##
##****************************************************************************************
GITVERSION=$(shell git log -1 --format="%H")
#===============================================================================
# set default options for Fugaku benchmark
fugaku_benchmark=
#===============================================================================
debug =
mpi =1
omp =1
#compiler [openmpi-gnu, gnu, intel, fujitsu_native, fujitsu_cross]
compiler =fujitsu_cross
#arch [fx100, postk, skylake, ofp, thunderx2, simulator]
arch =postk
#profiler [timing, fapp, fpcoll, pa] (nondisclousure: timing2)
profiler =timing
timing2_path=
prof_selective=
#target [jinv, in, pre, pos, other, all, all_calc, overlapped, send, send_post, recv, reduc1, reduc2, reduc3]
target =
half_prec =
#path to half precision library required in non clang mode
#libhalf=$(HOME)/opt/half-1.12.0/include
#rdma [,utofu, utofu_threaded, utofu_threaded_norankmap, mpi_rankmap] (todo: fjmpi)
rdma =utofu_threaded_norankmap
#clangmode : clang mode for fujitsu compiler
clang =
#Power API : Power API for Fugaku and FX1000
powerapi =
#Barrier before Allreduce
bar_reduc =
#COMPILE_TIME_DIM_SIZE
fixedsize =
#interfase [bqcd]
interface =
#===============================================================================
# set default options for Fugaku benchmark
ifdef fugaku_benchmark
debug =
mpi =1
omp =1
compiler =fujitsu_cross
arch =postk
profiler =timing2
timing2_path=/home/g9300001/u93022/opt/timing2_para.o
prof_selective=
target =all
half_prec =
rdma =utofu_threaded
clang =
powerapi =1
bar_reduc =
fixedsize =1
endif
#===============================================================================
REFIX =.
FPP = cpp -C -P --sysroot=.
ARFLAGS =
#FFLAGS = -I$(HOME)/src/bqcdi/modules
CPPFLAGS = $(cppflags)
PATH_LIBREADPIC=$(HOME)
ifeq ($(compiler),openmpi-gnu)
ifdef mpi
CC = mpicc
CXX = mpicxx
F90 = mpif90
MYFLAGS = -D_MPI_
else
CC = gcc
CXX = g++
F90 = gfortran
endif
MYFLAGS += -D_CHECK_TIMING
CFLAGS = -g
CXXFLAGS = $(CFLAGS) -std=gnu++11
CXXFLAGS_A = $(CFLAGS) -std=gnu++11
LDFLAGS=
SYSLIBS=
ifdef omp
CFLAGS += -fopenmp
CXXFLAGS += -fopenmp
CXXFLAGS_A += -fopenmp
endif
else ifeq ($(compiler),fujitsu_cross)
ifdef mpi
CC = mpifccpx
CXX = mpiFCCpx
F90 = mpifrtpx
RDMA_FLAGS=
ifeq ($(rdma),utofu)
RDMA_FLAGS= -D_RDMA_ -D_USE_RANKMAP -D_UTOFU_RDMA -D_UTOFU_RANKMAP
endif
ifeq ($(rdma),utofu_threaded)
RDMA_FLAGS= -D_RDMA_ -D_USE_RANKMAP -D_UTOFU_RDMA -D_UTOFU_RANKMAP -D_THREADED_RDMA
endif
ifeq ($(rdma),utofu_threaded_norankmap)
RDMA_FLAGS= -D_RDMA_ -D_UTOFU_RDMA -D_THREADED_RDMA
endif
ifeq ($(rdma),mpi_rankmap)
RDMA_FLAGS= -D_USE_RANKMAP -D_RDMA_ -D_UTOFU_RANKMAP
endif
ifeq ($(rdma),fjmpi)
RDMA_FLAGS= -D_RDMA_ -D_HPC_RDMA
endif
MYFLAGS = -D_MPI_ $(RDMA_FLAGS)
MYFLAGS += -D_NO_OMP_SINGLE # error avoiding
else
CC = fccpx
CXX = FCCpx
F90 = frtpx
endif
ifndef clang
CFLAGS = -Kfast,restp=all,optmsg=2,ocl,preex,noprefetch,noswp -Nline,lst=t
CFLAGS = -Kfast,restp=all,optmsg=2,ocl,preex,noprefetch,noswp -Nline,lst=t -Nfjomplib -Kilfunc=loop -Krdconv=2
CFLAGS = -Kfast,restp=all,optmsg=2,ocl,preex,noprefetch,noswp -Nline,lst=t -Nnofjprof -Nfjomplib -Kilfunc=loop -Krdconv=2
CXXFLAGS = $(CFLAGS) -std=gnu++11
CXXFLAGS_A = $(CFLAGS) -std=gnu++11 -Knosch_pre_ra,nosch_post_ra -Knoeval
else
## clang mode
CFLAGS = -Nclang -mcpu=a64fx+sve -Ofast -Koptmsg=2,preex,noprefetch -Nnofjprof -Kilfunc=loop -ffj-line -ffj-lst=t
CXXFLAGS = $(CFLAGS) -stdlib=libc++
CXXFLAGS_A = $(CFLAGS) -stdlib=libc++
endif
LDFLAGS =
SYSLIBS = -ltofucom
ifdef powerapi
MYFLAGS += -D_POWER_API_
CFLAGS += -I/opt/FJSVtcs/pwrm/aarch64/include
CFLAGS_A += -I/opt/FJSVtcs/pwrm/aarch64/include
CXXFLAGS += -I/opt/FJSVtcs/pwrm/aarch64/include
CXXFLAGS_A += -I/opt/FJSVtcs/pwrm/aarch64/include
SYSLIBS += -L/opt/FJSVtcs/pwrm/aarch64/lib64 -lpwr
endif
ifdef omp
CC += -Kopenmp
CXX += -Kopenmp
endif
else ifeq ($(compiler),fujitsu_native)
ifdef mpi
CC = mpifcc
CXX = mpiFCC
F90 = mpifrt
RDMA_FLAGS=
ifeq ($(rdma),utofu)
RDMA_FLAGS= -D_RDMA_ -D_USE_RANKMAP -D_UTOFU_RDMA -D_UTOFU_RANKMAP
endif
ifeq ($(rdma),utofu_threaded)
RDMA_FLAGS= -D_RDMA_ -D_USE_RANKMAP -D_UTOFU_RDMA -D_UTOFU_RANKMAP -D_THREADED_RDMA
endif
ifeq ($(rdma),utofu_threaded_norankmap)
RDMA_FLAGS= -D_RDMA_ -D_UTOFU_RDMA -D_THREADED_RDMA
endif
ifeq ($(rdma),mpi_rankmap)
RDMA_FLAGS= -D_USE_RANKMAP -D_RDMA_ -D_UTOFU_RANKMAP
endif
ifeq ($(rdma),fjmpi)
RDMA_FLAGS= -D_RDMA_ -D_HPC_RDMA
endif
MYFLAGS = -D_MPI_ $(RDMA_FLAGS)
MYFLAGS += -D_NO_OMP_SINGLE # error avoiding
else
CC = fcc
CXX = FCC
F90 = frt
endif
ifndef clang
CFLAGS = -Kfast,restp=all,optmsg=2,ocl,preex,noprefetch,noswp -Nline,lst=t
CFLAGS = -Kfast,restp=all,optmsg=2,ocl,preex,noprefetch,noswp -Nline,lst=t -Nfjomplib -Kilfunc=loop -Krdconv=2
CFLAGS = -Kfast,restp=all,optmsg=2,ocl,preex,noprefetch,noswp -Nline,lst=t -Nnofjprof -Nfjomplib -Kilfunc=loop -Krdconv=2
CXXFLAGS = $(CFLAGS) -std=gnu++11
CXXFLAGS_A = $(CFLAGS) -std=gnu++11 -Knosch_pre_ra,nosch_post_ra -Knoeval
else
## clang mode
CFLAGS = -Nclang -mcpu=a64fx+sve -Ofast -Koptmsg=2,preex,noprefetch -Nnofjprof -Kilfunc=loop -ffj-line -ffj-lst=t
CXXFLAGS = $(CFLAGS) -stdlib=libc++
CXXFLAGS_A = $(CFLAGS) -stdlib=libc++
endif
LDFLAGS =
SYSLIBS = -ltofucom
ifdef powerapi
MYFLAGS += -D_POWER_API_
CFLAGS += -I/opt/FJSVtcs/pwrm/aarch64/include
CFLAGS_A += -I/opt/FJSVtcs/pwrm/aarch64/include
CXXFLAGS += -I/opt/FJSVtcs/pwrm/aarch64/include
CXXFLAGS_A += -I/opt/FJSVtcs/pwrm/aarch64/include
SYSLIBS += -L/opt/FJSVtcs/pwrm/aarch64/lib64 -lpwr
endif
ifdef omp
CC += -Kopenmp
CXX += -Kopenmp
endif
else ifeq ($(compiler),intel)
ifdef mpi
CC = mpiicc
CXX = mpiicpc
F90 = mpiifort
MYFLAGS = -D_MPI_
MYFLAGS += -D_NO_OMP_SINGLE # error avoiding
else
CC = icc
CXX = icpc
F90 = ifort
endif
ifdef omp
CC += -qopenmp
CXX += -qopenmp
endif
MYFLAGS += -D_CHECK_TIMING
ifeq ($(arch),skylake)
CFLAGS = -O3 -xCORE-AVX512 -fno-alias -qopt-zmm-usage=high -Wno-unknown-pragmas -DARCH_AVX512
else ifeq ($(arch),ofp)
CFLAGS = -O3 -xKNL -fno-alias -qopt-zmm-usage=high -Wno-unknown-pragmas
endif
CXXFLAGS = $(CFLAGS) -std=gnu++11
CXXFLAGS_A = $(CFLAGS) -std=gnu++11
CFLAGS += -std=gnu99
LDFLAGS =
SYSLIBS =
else ifeq ($(compiler),gnu)
CC = gcc
CXX = g++
F90 = gfortran
ifdef omp
CC += -fopenmp
CXX += -fopenmp
endif
MYFLAGS += -D_CHECK_TIMING
CFLAGS = -g
CXXFLAGS = $(CFLAGS) -std=gnu++11
CXXFLAGS_A = $(CFLAGS) -std=gnu++11
LDFLAGS=
SYSLIBS=
else
$(error Unknown compiler: $(compiler))
endif
ifeq ($(arch),fx100)
vlend = 4
vlens = 8
strong_prefetch = 1
else ifeq ($(arch),postk)
vlend = 8
vlens = 16
ifndef clang
MYFLAGS += -DINLINE_ASM_UNAVAILABLE -DARCH_POSTK
else
MYFLAGS += -DINLINE_ASM_UNAVAILABLE -DARCH_POSTK
endif
ifdef fixedsize
MYFLAGS += -DCOMPILE_TIME_DIM_SIZE -DNX=32 -DNY=6 -DNZ=4 -DNT=3
endif
else ifeq ($(arch),thunderx2)
vlend=2
vlens=4
else ifeq ($(arch),skylake)
vlend=8
vlens=16
else ifeq ($(arch),ofp)
vlend=8
vlens=16
else ifeq ($(arch),simulator)
vlend=2
vlens=2
else
$(error Unknown architecture: $(arch))
endif
ifdef vlens
MYFLAGS += -DVLENS=$(vlens)
endif
ifdef vlend
MYFLAGS += -DVLEND=$(vlend)
endif
.SUFFIXES:
.SUFFIXES: .a .o .cc .c .F90 .s .S
.cc.o:
$(CXX) $(CXXFLAGS) $(MYFLAGS) $(CPPFLAGS) -c -o $@ $<
.c.o:
$(CC) $(CFLAGS) $(MYFLAGS) $(CPPFLAGS) -c -o $@ $<
.cc.s:
$(CXX) $(CXXFLAGS) $(MYFLAGS) $(CPPFLAGS) -S $<
.F90.o:
$(FPP) $(CPPFLAGS) $(MYFLAGS) $< > $*.f90
$(F90) -c $(FFLAGS) $*.f90
.S.o:
$(CC) $(CPPFLAGS) $< -c
# communications
OBJS_UTOFU = rdma_utofu_comlib.o rankmap_lib_utofu.o get_tofu_coord_common.o get_tofu_coord.o get_tofu_coord_openXYZ.o get_tofu_coord_openXY.o get_tofu_coord_openY.o get_tofu_coord_openY_topology.o get_tni_default.o
ifdef mpi
ifndef rdma
OBJS_XBOUND = qws_xbound_mpi.o
OBJS_COMM = $(OBJS_XBOUND)
endif
ifeq ($(rdma),utofu)
OBJS_XBOUND = qws_xbound_rdma.o
OBJS_COMM = $(OBJS_XBOUND) $(OBJS_UTOFU) rdma_comlib_2buf.o
endif
ifeq ($(rdma),utofu_threaded)
OBJS_XBOUND = qws_xbound_rdma.o
OBJS_COMM = $(OBJS_XBOUND) $(OBJS_UTOFU) rdma_comlib_2buf.o
endif
ifeq ($(rdma),utofu_threaded_norankmap)
OBJS_XBOUND = qws_xbound_rdma.o
OBJS_COMM = $(OBJS_XBOUND) $(OBJS_UTOFU) rdma_comlib_2buf.o
endif
ifeq ($(rdma),mpi_rankmap)
OBJS_XBOUND = qws_xbound_mpi.o
OBJS_COMM = $(OBJS_XBOUND) $(OBJS_UTOFU) rdma_comlib_2buf.o
endif
ifeq ($(rdma),fjmpi)
OBJS_XBOUND = qws_xbound_rdma.o
OBJS_COMM = $(OBJS_XBOUND) rdma_comlib.o rdma_comlib_2buf.o
endif
ifdef bar_reduc
MYFLAGS+= -D_MPI_BARRIER_BEFORE_REDUC_
endif
else
OBJS_XBOUND = qws_xbound_nompi.o
OBJS_COMM = $(OBJS_XBOUND)
endif
OBJS := \
timing.o \
qws.o \
bicgstab.o \
deo_in_d.o \
deo_in_s.o \
deo_out_d.o \
deo_out_s.o \
deo_dag_in.o \
deo_dag_out.o \
cg.o \
mcg.o \
ddd_in_d.o \
ddd_in_s.o \
ddd_out_d.o \
ddd_out_s.o \
static_solver.o \
bicgstab_dd_s.o \
bicgstab_dd_d.o \
bicgstab_precdd_s.o \
bicgstab_dd_mix.o \
reordering.o \
clover_s.o \
util.o \
MAIN = main.o
ifdef powerapi
OBJS += power.o
endif
ifdef kernelize
OBJS := \
report.o \
eml_lib.o \
util.o \
data.o \
MAIN = main_kern.o
endif
OBJS += $(OBJS_COMM)
ifdef strong_prefetch
objs_with_prefetch = qws.o ddd_in_s.o ddd_out_s.o static_solver.o bicgstab_precdd_s.o
OBJS := $(filter-out $(objs_with_prefetch),$(OBJS))
OBJS += $(objs_with_prefetch:.o=_strp.s)
endif
ifeq ($(target),all)
CFLAGS += -DPROF_TARGET=TARGET_ALL
endif
ifeq ($(target),jinv)
CFLAGS += -DPROF_TARGET=TARGET_JINV
endif
ifeq ($(target),in)
CFLAGS += -DPROF_TARGET=TARGET_IN
endif
ifeq ($(target),pre)
CFLAGS += -DPROF_TARGET=TARGET_PRE
endif
ifeq ($(target),pos)
CFLAGS += -DPROF_TARGET=TARGET_POS
endif
ifeq ($(target),other)
CFLAGS += -DPROF_TARGET=TARGET_OTHER
endif
ifeq ($(target),all_calc)
CFLAGS += -DPROF_TARGET=TARGET_ALL_CALC
endif
ifeq ($(target),overlapped)
CFLAGS += -DPROF_TARGET=TARGET_OVERLAPPED
endif
ifeq ($(target),send)
CFLAGS += -DPROF_TARGET=TARGET_SEND
endif
ifeq ($(target),send_post)
CFLAGS += -DPROF_TARGET=TARGET_SEND_POST
endif
ifeq ($(target),recv)
CFLAGS += -DPROF_TARGET=TARGET_RECV
endif
ifeq ($(target),reduc1)
CFLAGS += -DPROF_TARGET=TARGET_REDUC1
endif
ifeq ($(target),reduc2)
CFLAGS += -DPROF_TARGET=TARGET_REDUC2
endif
ifeq ($(target),reduc3)
CFLAGS += -DPROF_TARGET=TARGET_REDUC3
endif
ifeq ($(profiler),timing)
CFLAGS += -D_CHECK_TIMING
endif
ifeq ($(profiler),timing2)
CFLAGS += -D_CHECK_TIMING2
OBJS += $(timing2_path)
CFLAGS += -I.
endif
ifeq ($(profiler),fpcoll)
CFLAGS += -D_FPCOLL
endif
ifeq ($(profiler),fapp)
CFLAGS += -D_FAPP -Nfjprof
endif
ifeq ($(profiler),pa)
CFLAGS += -D_CHECK_PA -I$(PATH_LIBREADPIC)/libreadpic
LDFLAGS += -lreadpic -L$(PATH_LIBREADPIC)/libreadpic/sparc64xifx
endif
ifeq ($(prof_selective),1)
CFLAGS += -DPROF_SELECTIVE
endif
ifdef debug
MYFLAGS += -D_DEBUG_
endif
ifdef half_prec
OBJS += \
bicgstab_precdd_s_h.o \
bicgstab_dd_mix2_hf.o \
qws_h.o
MYFLAGS += -DHALF_PREC
ifdef libhalf
MYFLAGS += -I$(libhalf) -Dlibhalf
endif
endif
ifdef FFLAGS
fast:
$(MAKE) main
$(MAKE) libqws.a
else
fast:
$(MAKE) main
endif
DELIVERABLES=main libqws.a
install: $(DELIVERABLES)
install $(DELIVERABLES) $(PREFIX)
#prepare:
# sed -i 's/^\#define VLEND.*/#define VLEND $(vlend)/' ./qws.h
# sed -i 's/^\#define VLENS.*/#define VLENS $(vlens)/' ./qws.h
main:$(OBJS) $(MAIN) $(LDFLAGS)
$(CXX) -o $@ $(MAIN) $(OBJS) $(SYSLIBS) $(CXXFLAGS) $(LDFLAGS)
ifdef interface
libqws.a:$(OBJS) test_qws.o qws_bqcd.o
$(AR) $(ARFLAGS) rv $@ $(OBJS) test_qws.o qws_bqcd.o
else
libqws.a:$(OBJS)
$(AR) $(ARFLAGS) rv $@ $(OBJS)
endif
clean:
rm -f *.s *.o *.f90 *.lst
rm -f main libqws.a
qws.o: qws.h clover_d.h clover_s.h clover_def.h
$(CXX) $(CXXFLAGS) $(MYFLAGS) $(CPPFLAGS) -DVERSION=\"$(GITVERSION)\" -c -o qws.o qws.cc
qws_xbound_nompi.o: qws.h
qws_xbound_mpi.o: qws.h
qws_xbound_rdma.o: qws.h rdma_utofu_comlib.h rdma_comlib_2buf.h rankmap_lib_utofu.o get_tofu_coord.o
get_tofu_coord.o: get_tofu_coord_common.o get_tofu_coord_common.h get_tofu_coord_openXYZ.o get_tofu_coord_openXY.o get_tofu_coord_openY.o
qws_bqcd.o: qws.h
bicgstab.o: qws.h
bicgstab_dd_s.o: qws.h
bicgstab_dd_d.o: qws.h
bicgstab_dd_mix.o: qws.h
bicgstab_precdd_s.o: qws.h
cg.o:qws.h
mcg.o:qws.h
static_solver.o:qws.h
reordering.o:qws.h
bicgstab_dd_mix2_hf.o : qws.h
bicgstab_precdd_s_h.o : qws.h
qws_h.o: qws_h.cc qws.h clover_h.h mult_all.h xbound_h.h ddd_in_h.h ddd_out_h.h ddd_out_h_0_inline.h jinv_ddd_in_h.h prec_ddd_s_h.h
deo_in_d.o:qws.h wilson_def.h wilson_d.h clover_d.h
deo_in_s.o:qws.h wilson_def.h wilson_s.h clover_s.h
deo_out_d.o:qws.h wilson_def.h wilson_d.h clover_d.h
deo_out_s.o:qws.h wilson_def.h wilson_s.h clover_s.h
deo_dag_in.o:qws.h wilson_def.h wilson_d.h clover_d.h
deo_dag_out.o:qws.h wilson_def.h wilson_d.h clover_d.h
ddd_in_d.o:qws.h wilson_def.h wilson_d.h clover_d.h
ddd_in_s.o:qws.h wilson_def.h wilson_s.h clover_s.h mult_all.h prefetch.h
$(CXX) $(CXXFLAGS_A) $(MYFLAGS) $(CPPFLAGS) -c -o ddd_in_s.o ddd_in_s.cc
ddd_out_d.o:qws.h wilson_def.h wilson_d.h clover_d.h
ddd_out_s.o:qws.h wilson_def.h wilson_s.h clover_s.h mult_all.h ddd_out_s_inline.h
$(CXX) $(CXXFLAGS_A) $(MYFLAGS) $(CPPFLAGS) -c -o ddd_out_s.o ddd_out_s.cc
clover_s.o:qws.h wilson_def.h wilson_s.h clover_s.h mult_all.h prefetch.h
$(CXX) $(CXXFLAGS_A) $(MYFLAGS) $(CPPFLAGS) -c -o clover_s.o clover_s.cc
ddd_in_s.s:qws.h wilson_def.h wilson_s.h clover_s.h mult_all.h prefetch.h
clover_s.s:qws.h wilson_def.h wilson_s.h clover_s.h mult_all.h prefetch.h
clover_s2.s:qws.h wilson_def.h wilson_s.h clover_s.h mult_all.h prefetch.h
ddd_out_s.s:qws.h wilson_def.h wilson_s.h clover_s.h mult_all.h ddd_out_s_inline.h
qws.s: qws.h clover_d.h clover_s.h clover_def.h
static_solver.s:qws.h
bicgstab_precdd_s.s: qws.h
rdma_comlib.o: rdma_comlib.h
rdma_utofu_comlib.o: rdma_utofu_comlib.h
rdma_comlib_2buf.o: rdma_utofu_comlib.h rdma_comlib_2buf.h
%_strp.s: %.s
sed -e "s/\(prefetch\t.*,\)0$$/\120/g" -e "s/\(prefetch\t.*,\)2$$/\122/g" $< > $@