Skip to content

Commit 884e6da

Browse files
committed
restore OpenBLAS-specific build file fixes
1 parent 56d238f commit 884e6da

File tree

5 files changed

+23
-16
lines changed

5 files changed

+23
-16
lines changed

lapack-netlib/TESTING/EIG/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ set(ZEIGTST zchkee.F
9898

9999
macro(add_eig_executable name)
100100
add_executable(${name} ${ARGN})
101-
target_link_libraries(${name} ${TMGLIB} ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
101+
target_link_libraries(${name} openblas${SUFFIX64_UNDERSCORE})
102+
#${TMGLIB} ../${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
102103
endmacro()
103104

104105
if(BUILD_SINGLE)

lapack-netlib/TESTING/EIG/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,16 @@ double: xeigtstd
128128
complex16: xeigtstz
129129

130130
xeigtsts: $(SEIGTST) $(SCIGTST) $(AEIGTST) $(TMGLIB) ../$(LAPACKLIB) $(BLASLIB)
131-
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
131+
$(LOADER) $(FFLAGS) $(LDFLAGS) -o $@ $^
132132

133133
xeigtstc: $(CEIGTST) $(SCIGTST) $(AEIGTST) $(TMGLIB) ../$(LAPACKLIB) $(BLASLIB)
134-
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
134+
$(LOADER) $(FFLAGS) $(LDFLAGS) -o $@ $^
135135

136136
xeigtstd: $(DEIGTST) $(DZIGTST) $(AEIGTST) $(TMGLIB) ../$(LAPACKLIB) $(BLASLIB)
137-
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
137+
$(LOADER) $(FFLAGS) $(LDFLAGS) -o $@ $^
138138

139139
xeigtstz: $(ZEIGTST) $(DZIGTST) $(AEIGTST) $(TMGLIB) ../$(LAPACKLIB) $(BLASLIB)
140-
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
140+
$(LOADER) $(FFLAGS) $(LDFLAGS) -o $@ $^
141141

142142
$(AEIGTST): $(FRC)
143143
$(SCIGTST): $(FRC)

lapack-netlib/TESTING/LIN/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ set(ZLINTSTRFP zchkrfp.f zdrvrfp.f zdrvrf1.f zdrvrf2.f zdrvrf3.f zdrvrf4.f zerrr
239239

240240
macro(add_lin_executable name)
241241
add_executable(${name} ${ARGN})
242-
target_link_libraries(${name} ${TMGLIB} ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
242+
target_link_libraries(${name} openblas${SUFFIX64_UNDERSCORE})
243+
#${TMGLIB} ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
243244
endmacro()
244245

245246
if(BUILD_SINGLE)

lapack-netlib/TESTING/LIN/Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -270,34 +270,34 @@ proto-complex: xlintstrfc
270270
proto-complex16: xlintstzc xlintstrfz
271271

272272
xlintsts: $(ALINTST) $(SLINTST) $(SCLNTST) $(TMGLIB) $(VARLIB) ../$(LAPACKLIB) $(XBLASLIB) $(BLASLIB)
273-
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
273+
$(LOADER) $(FFLAGS) $(LDFLAGS) -o $@ $^
274274

275275
xlintstc: $(ALINTST) $(CLINTST) $(SCLNTST) $(TMGLIB) $(VARLIB) ../$(LAPACKLIB) $(XBLASLIB) $(BLASLIB)
276-
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
276+
$(LOADER) $(FFLAGS) $(LDFLAGS) -o $@ $^
277277

278278
xlintstd: $(ALINTST) $(DLINTST) $(DZLNTST) $(TMGLIB) $(VARLIB) ../$(LAPACKLIB) $(XBLASLIB) $(BLASLIB)
279-
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
279+
$(LOADER) $(FFLAGS) $(LDFLAGS) -o $@ $^
280280

281281
xlintstz: $(ALINTST) $(ZLINTST) $(DZLNTST) $(TMGLIB) $(VARLIB) ../$(LAPACKLIB) $(XBLASLIB) $(BLASLIB)
282-
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
282+
$(LOADER) $(FFLAGS) $(LDFLAGS) -o $@ $^
283283

284284
xlintstds: $(DSLINTST) $(TMGLIB) $(VARLIB) ../$(LAPACKLIB) $(BLASLIB)
285-
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
285+
$(LOADER) $(FFLAGS) $(LDFLAGS) -o $@ $^
286286

287287
xlintstzc: $(ZCLINTST) $(TMGLIB) $(VARLIB) ../$(LAPACKLIB) $(BLASLIB)
288-
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
288+
$(LOADER) $(FFLAGS) $(LDFLAGS) -o $@ $^
289289

290290
xlintstrfs: $(SLINTSTRFP) $(TMGLIB) $(VARLIB) ../$(LAPACKLIB) $(BLASLIB)
291-
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
291+
$(LOADER) $(FFLAGS) $(LDFLAGS) -o $@ $^
292292

293293
xlintstrfd: $(DLINTSTRFP) $(TMGLIB) $(VARLIB) ../$(LAPACKLIB) $(BLASLIB)
294-
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
294+
$(LOADER) $(FFLAGS) $(LDFLAGS) -o $@ $^
295295

296296
xlintstrfc: $(CLINTSTRFP) $(TMGLIB) $(VARLIB) ../$(LAPACKLIB) $(BLASLIB)
297-
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
297+
$(LOADER) $(FFLAGS) $(LDFLAGS) -o $@ $^
298298

299299
xlintstrfz: $(ZLINTSTRFP) $(TMGLIB) $(VARLIB) ../$(LAPACKLIB) $(BLASLIB)
300-
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
300+
$(LOADER) $(FFLAGS) $(LDFLAGS) -o $@ $^
301301

302302
$(ALINTST): $(FRC)
303303
$(SCLNTST): $(FRC)

lapack-netlib/TESTING/MATGEN/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,10 @@ cleanobj:
106106
cleanlib:
107107
rm -f $(TMGLIB)
108108

109+
ifneq ($(C_LAPACK), 1)
109110
slaran.o: slaran.f ; $(FC) $(FFLAGS_NOOPT) -c -o $@ $<
110111
dlaran.o: dlaran.f ; $(FC) $(FFLAGS_NOOPT) -c -o $@ $<
112+
else
113+
slaran.o: slaran.c ; $(CC) $(CFLAGS_NOOPT) -c -o $@ $<
114+
dlaran.o: dlaran.c ; $(CC) $(CFLAGS_NOOPT) -c -o $@ $<
115+
endif

0 commit comments

Comments
 (0)