Skip to content

Commit 33b899f

Browse files
committed
2 parents e38b42a + 4506e47 commit 33b899f

82 files changed

Lines changed: 894 additions & 834 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ CBLAS/examples/cblas_ex1
2323
CBLAS/examples/cblas_ex2
2424

2525
# LAPACK testing
26-
TESTING/x*
26+
TESTING/LIN/xlintst*
27+
TESTING/EIG/xeigtst*
2728
TESTING/*.out
2829
TESTING/*.txt
2930

BLAS/Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
include ../make.inc
2+
3+
all: blas
4+
5+
blas:
6+
$(MAKE) -C SRC
7+
8+
blas_testing: blas
9+
$(MAKE) -C TESTING run
10+
11+
clean:
12+
$(MAKE) -C SRC clean
13+
$(MAKE) -C TESTING clean
14+
cleanobj:
15+
$(MAKE) -C SRC cleanobj
16+
$(MAKE) -C TESTING cleanobj
17+
cleanlib:
18+
$(MAKE) -C SRC cleanlib
19+
cleanexe:
20+
$(MAKE) -C TESTING cleanexe
21+
cleantest:
22+
$(MAKE) -C TESTING cleantest

BLAS/SRC/Makefile

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ include ../../make.inc
4242
# top-level make.inc
4343
#
4444
# To remove the object files after the library is created, enter
45-
# make clean
45+
# make cleanobj
4646
# To force the source files to be recompiled, enter, for example,
4747
# make single FRC=FRC
4848
#
@@ -138,34 +138,33 @@ ALLOBJ = $(SBLAS1) $(SBLAS2) $(SBLAS3) $(DBLAS1) $(DBLAS2) $(DBLAS3) \
138138
$(ZBLAS2) $(ZBLAS3) $(ALLBLAS)
139139

140140
$(BLASLIB): $(ALLOBJ)
141-
$(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ)
141+
$(ARCH) $(ARCHFLAGS) $@ $^
142142
$(RANLIB) $@
143143

144144
single: $(SBLAS1) $(ALLBLAS) $(SBLAS2) $(SBLAS3)
145-
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $(SBLAS1) $(ALLBLAS) \
146-
$(SBLAS2) $(SBLAS3)
145+
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $^
147146
$(RANLIB) $(BLASLIB)
148147

149148
double: $(DBLAS1) $(ALLBLAS) $(DBLAS2) $(DBLAS3)
150-
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $(DBLAS1) $(ALLBLAS) \
151-
$(DBLAS2) $(DBLAS3)
149+
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $^
152150
$(RANLIB) $(BLASLIB)
153151

154152
complex: $(CBLAS1) $(CB1AUX) $(ALLBLAS) $(CBLAS2) $(CBLAS3)
155-
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $(CBLAS1) $(CB1AUX) \
156-
$(ALLBLAS) $(CBLAS2) $(CBLAS3)
153+
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $^
157154
$(RANLIB) $(BLASLIB)
158155

159156
complex16: $(ZBLAS1) $(ZB1AUX) $(ALLBLAS) $(ZBLAS2) $(ZBLAS3)
160-
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $(ZBLAS1) $(ZB1AUX) \
161-
$(ALLBLAS) $(ZBLAS2) $(ZBLAS3)
157+
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $^
162158
$(RANLIB) $(BLASLIB)
163159

164160
FRC:
165161
@FRC=$(FRC)
166162

167-
clean:
163+
clean: cleanobj cleanlib
164+
cleanobj:
168165
rm -f *.o
166+
cleanlib:
167+
#rm -f $(BLASLIB) # May point to a system lib, e.g. -lblas
169168

170169
.f.o:
171170
$(FORTRAN) $(OPTS) -c -o $@ $<

BLAS/TESTING/Makefile

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@ double: xblat1d xblat2d xblat3d
66
complex: xblat1c xblat2c xblat3c
77
complex16: xblat1z xblat2z xblat3z
88

9-
xblat1s: sblat1.o
10-
$(LOADER) $(LOADOPTS) -o $@ sblat1.o $(BLASLIB)
11-
xblat1d: dblat1.o
12-
$(LOADER) $(LOADOPTS) -o $@ dblat1.o $(BLASLIB)
13-
xblat1c: cblat1.o
14-
$(LOADER) $(LOADOPTS) -o $@ cblat1.o $(BLASLIB)
15-
xblat1z: zblat1.o
16-
$(LOADER) $(LOADOPTS) -o $@ zblat1.o $(BLASLIB)
9+
xblat1s: sblat1.o $(BLASLIB)
10+
$(LOADER) $(LOADOPTS) -o $@ $^
11+
xblat1d: dblat1.o $(BLASLIB)
12+
$(LOADER) $(LOADOPTS) -o $@ $^
13+
xblat1c: cblat1.o $(BLASLIB)
14+
$(LOADER) $(LOADOPTS) -o $@ $^
15+
xblat1z: zblat1.o $(BLASLIB)
16+
$(LOADER) $(LOADOPTS) -o $@ $^
1717

18-
xblat2s: sblat2.o
19-
$(LOADER) $(LOADOPTS) -o $@ sblat2.o $(BLASLIB)
20-
xblat2d: dblat2.o
21-
$(LOADER) $(LOADOPTS) -o $@ dblat2.o $(BLASLIB)
22-
xblat2c: cblat2.o
23-
$(LOADER) $(LOADOPTS) -o $@ cblat2.o $(BLASLIB)
24-
xblat2z: zblat2.o
25-
$(LOADER) $(LOADOPTS) -o $@ zblat2.o $(BLASLIB)
18+
xblat2s: sblat2.o $(BLASLIB)
19+
$(LOADER) $(LOADOPTS) -o $@ $^
20+
xblat2d: dblat2.o $(BLASLIB)
21+
$(LOADER) $(LOADOPTS) -o $@ $^
22+
xblat2c: cblat2.o $(BLASLIB)
23+
$(LOADER) $(LOADOPTS) -o $@ $^
24+
xblat2z: zblat2.o $(BLASLIB)
25+
$(LOADER) $(LOADOPTS) -o $@ $^
2626

27-
xblat3s: sblat3.o
28-
$(LOADER) $(LOADOPTS) -o $@ sblat3.o $(BLASLIB)
29-
xblat3d: dblat3.o
30-
$(LOADER) $(LOADOPTS) -o $@ dblat3.o $(BLASLIB)
31-
xblat3c: cblat3.o
32-
$(LOADER) $(LOADOPTS) -o $@ cblat3.o $(BLASLIB)
33-
xblat3z: zblat3.o
34-
$(LOADER) $(LOADOPTS) -o $@ zblat3.o $(BLASLIB)
27+
xblat3s: sblat3.o $(BLASLIB)
28+
$(LOADER) $(LOADOPTS) -o $@ $^
29+
xblat3d: dblat3.o $(BLASLIB)
30+
$(LOADER) $(LOADOPTS) -o $@ $^
31+
xblat3c: cblat3.o $(BLASLIB)
32+
$(LOADER) $(LOADOPTS) -o $@ $^
33+
xblat3z: zblat3.o $(BLASLIB)
34+
$(LOADER) $(LOADOPTS) -o $@ $^
3535

3636
run: all
3737
./xblat1s > sblat1.out
@@ -47,8 +47,13 @@ run: all
4747
./xblat3c < cblat3.in
4848
./xblat3z < zblat3.in
4949

50-
clean:
51-
rm -f *.o xblat* *.out
50+
clean: cleanobj cleanexe cleantest
51+
cleanobj:
52+
rm -f *.o
53+
cleanexe:
54+
rm -f xblat*
55+
cleantest:
56+
rm -f *.out core
5257

5358
.f.o:
5459
$(FORTRAN) $(OPTS) -c -o $@ $<

CBLAS/Makefile

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
include ../make.inc
22

3-
all:
4-
cd include && cp cblas_mangling_with_flags.h.in cblas_mangling.h
5-
cd src && $(MAKE) all
3+
all: cblas
64

5+
cblas: include/cblas_mangling.h
6+
$(MAKE) -C src
77

8-
clean: cleanlib
8+
include/cblas_mangling.h: include/cblas_mangling_with_flags.h.in
9+
cp $< $@
910

10-
cleanlib:
11-
cd src && $(MAKE) clean
12-
13-
cleanexe:
14-
cd testing && $(MAKE) cleanexe
15-
16-
cleanall: clean cleanexe
17-
cd src && $(MAKE) cleanall
18-
cd examples && $(MAKE) cleanall
11+
cblas_testing: cblas
12+
$(MAKE) -C testing run
1913

20-
cblas_testing:
21-
cd testing && $(MAKE) all
14+
cblas_example: cblas
15+
$(MAKE) -C examples
2216

23-
runtst:
24-
cd testing && $(MAKE) run
25-
26-
example: all
27-
cd examples && $(MAKE) all
17+
clean:
18+
$(MAKE) -C src clean
19+
$(MAKE) -C testing clean
20+
$(MAKE) -C examples clean
21+
cleanobj:
22+
$(MAKE) -C src cleanobj
23+
$(MAKE) -C testing cleanobj
24+
$(MAKE) -C examples cleanobj
25+
cleanlib:
26+
$(MAKE) -C src cleanlib
27+
cleanexe:
28+
$(MAKE) -C testing cleanexe
29+
$(MAKE) -C examples cleanexe
30+
cleantest:
31+
$(MAKE) -C testing cleantest

CBLAS/examples/Makefile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@ include ../../make.inc
22

33
all: cblas_ex1 cblas_ex2
44

5-
cblas_ex1: cblas_example1.o
6-
$(LOADER) $(LOADOPTS) -o $@ cblas_example1.o $(CBLASLIB) $(BLASLIB)
7-
cblas_ex2: cblas_example2.o
8-
$(LOADER) $(LOADOPTS) -o $@ cblas_example2.o $(CBLASLIB) $(BLASLIB)
5+
cblas_ex1: cblas_example1.o $(CBLASLIB) $(BLASLIB)
6+
$(LOADER) $(LOADOPTS) -o $@ $^
7+
cblas_ex2: cblas_example2.o $(CBLASLIB) $(BLASLIB)
8+
$(LOADER) $(LOADOPTS) -o $@ $^
99

10-
cleanall:
11-
rm -f *.o cblas_ex1 cblas_ex2
10+
clean: cleanobj cleanexe
11+
cleanobj:
12+
rm -f *.o
13+
cleanexe:
14+
rm -f cblas_ex1 cblas_ex2
1215

1316
.c.o:
1417
$(CC) $(CFLAGS) -I../include -c -o $@ $<

CBLAS/src/Makefile

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,22 @@ sclev1 = cblas_scasum.o scasumsub.o cblas_scnrm2.o scnrm2sub.o
4545

4646
# Single precision real
4747
slib1: $(slev1) $(sclev1)
48-
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(slev1) $(sclev1)
48+
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $^
4949
$(RANLIB) $(CBLASLIB)
5050

5151
# Double precision real
5252
dlib1: $(dlev1)
53-
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(dlev1)
53+
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $^
5454
$(RANLIB) $(CBLASLIB)
5555

5656
# Single precision complex
5757
clib1: $(clev1) $(sclev1)
58-
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(clev1) $(sclev1)
58+
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $^
5959
$(RANLIB) $(CBLASLIB)
6060

6161
# Double precision complex
6262
zlib1: $(zlev1)
63-
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(zlev1)
63+
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $^
6464
$(RANLIB) $(CBLASLIB)
6565

6666
#
@@ -97,22 +97,22 @@ zlev2 = cblas_zgemv.o cblas_zgbmv.o cblas_zhemv.o cblas_zhbmv.o cblas_zhpmv.o \
9797

9898
# Single precision real
9999
slib2: $(slev2) $(errhand)
100-
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(slev2) $(errhand)
100+
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $^
101101
$(RANLIB) $(CBLASLIB)
102102

103103
# Double precision real
104104
dlib2: $(dlev2) $(errhand)
105-
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(dlev2) $(errhand)
105+
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $^
106106
$(RANLIB) $(CBLASLIB)
107107

108108
# Single precision complex
109109
clib2: $(clev2) $(errhand)
110-
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(clev2) $(errhand)
110+
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $^
111111
$(RANLIB) $(CBLASLIB)
112112

113113
# Double precision complex
114114
zlib2: $(zlev2) $(errhand)
115-
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(zlev2) $(errhand)
115+
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $^
116116
$(RANLIB) $(CBLASLIB)
117117

118118
#
@@ -143,22 +143,22 @@ zlev3 = cblas_zgemm.o cblas_zsymm.o cblas_zhemm.o cblas_zherk.o \
143143

144144
# Single precision real
145145
slib3: $(slev3) $(errhand)
146-
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(slev3) $(errhand)
146+
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $^
147147
$(RANLIB) $(CBLASLIB)
148148

149149
# Double precision real
150150
dlib3: $(dlev3) $(errhand)
151-
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(dlev3) $(errhand)
151+
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $^
152152
$(RANLIB) $(CBLASLIB)
153153

154154
# Single precision complex
155155
clib3: $(clev3) $(errhand)
156-
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(clev3) $(errhand)
156+
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $^
157157
$(RANLIB) $(CBLASLIB)
158158

159159
# Double precision complex
160160
zlib3: $(zlev3) $(errhand)
161-
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(zlev3) $(errhand)
161+
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $^
162162
$(RANLIB) $(CBLASLIB)
163163

164164

@@ -168,34 +168,34 @@ alev3 = $(slev3) $(dlev3) $(clev3) $(zlev3)
168168

169169
# All level 1
170170
all1: $(alev1)
171-
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(alev1)
171+
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $^
172172
$(RANLIB) $(CBLASLIB)
173173

174174
# All level 2
175175
all2: $(alev2) $(errhand)
176-
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(alev2) $(errhand)
176+
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $^
177177
$(RANLIB) $(CBLASLIB)
178178

179179
# All level 3
180180
all3: $(alev3) $(errhand)
181-
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(alev3) $(errhand)
181+
$(ARCH) $(ARCHFLAGS) $(CBLASLIB) $^
182182
$(RANLIB) $(CBLASLIB)
183183

184184
# All levels and precisions
185185
$(CBLASLIB): $(alev1) $(alev2) $(alev3) $(errhand)
186-
$(ARCH) $(ARCHFLAGS) $@ $(alev1) $(alev2) $(alev3) $(errhand)
186+
$(ARCH) $(ARCHFLAGS) $@ $^
187187
$(RANLIB) $@
188188

189189
FRC:
190190
@FRC=$(FRC)
191191

192-
clean:
193-
rm -f *.o a.out core
194-
cleanall:
192+
clean: cleanobj cleanlib
193+
cleanobj:
194+
rm -f *.o
195+
cleanlib:
195196
rm -f $(CBLASLIB)
196197

197198
.c.o:
198199
$(CC) $(CFLAGS) -I../include -c -o $@ $<
199-
200200
.f.o:
201201
$(FORTRAN) $(OPTS) -c -o $@ $<

CBLAS/testing/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ macro(add_cblas_test output input target)
2525
endmacro()
2626

2727

28-
# Object files for single real precision
28+
# Object files for single precision real
2929
set(STESTL1O c_sblas1.c)
3030
set(STESTL2O c_sblas2.c c_s2chke.c auxiliary.c c_xerbla.c)
3131
set(STESTL3O c_sblas3.c c_s3chke.c auxiliary.c c_xerbla.c)
3232

33-
# Object files for double real precision
33+
# Object files for double precision real
3434
set(DTESTL1O c_dblas1.c)
3535
set(DTESTL2O c_dblas2.c c_d2chke.c auxiliary.c c_xerbla.c)
3636
set(DTESTL3O c_dblas3.c c_d3chke.c auxiliary.c c_xerbla.c)
3737

38-
# Object files for single complex precision
38+
# Object files for single precision complex
3939
set(CTESTL1O c_cblat1.f c_cblas1.c)
4040
set(CTESTL2O c_cblas2.c c_c2chke.c auxiliary.c c_xerbla.c)
4141
set(CTESTL3O c_cblas3.c c_c3chke.c auxiliary.c c_xerbla.c)
4242

43-
# Object files for double complex precision
43+
# Object files for double precision complex
4444
set(ZTESTL1O c_zblas1.c)
4545
set(ZTESTL2O c_zblas2.c c_z2chke.c auxiliary.c c_xerbla.c)
4646
set(ZTESTL3O c_zblas3.c c_z3chke.c auxiliary.c c_xerbla.c)

0 commit comments

Comments
 (0)