Skip to content

Commit d2a8ff4

Browse files
committed
Merge branch 'TimothyGu-develop' into develop
2 parents c38379c + f331cb1 commit d2a8ff4

File tree

7 files changed

+3
-5686
lines changed

7 files changed

+3
-5686
lines changed

Makefile

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -238,37 +238,6 @@ ifndef NOFORTRAN
238238
-@cat make.inc >> $(NETLIB_LAPACK_DIR)/make.inc
239239
endif
240240

241-
lapack-3.4.2 : lapack-3.4.2.tgz
242-
ifndef NOFORTRAN
243-
ifndef NO_LAPACK
244-
@if test `$(MD5SUM) $< | $(AWK) '{print $$1}'` = 61bf1a8a4469d4bdb7604f5897179478; then \
245-
echo $(TAR) zxf $< ;\
246-
$(TAR) zxf $< && (cd $(NETLIB_LAPACK_DIR); $(PATCH) -p1 < ../patch.for_lapack-3.4.2) ;\
247-
rm -f $(NETLIB_LAPACK_DIR)/lapacke/make.inc ;\
248-
else \
249-
rm -rf $(NETLIB_LAPACK_DIR) ;\
250-
echo " Cannot download lapack-3.4.2.tgz or the MD5 check sum is wrong (Please use orignal)."; \
251-
exit 1; \
252-
fi
253-
endif
254-
endif
255-
256-
LAPACK_URL=http://www.netlib.org/lapack/lapack-3.4.2.tgz
257-
258-
lapack-3.4.2.tgz :
259-
ifndef NOFORTRAN
260-
#http://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or
261-
ifeq ($(OSNAME), $(filter $(OSNAME),Darwin NetBSD))
262-
curl -O $(LAPACK_URL);
263-
else
264-
ifeq ($(OSNAME), FreeBSD)
265-
fetch $(LAPACK_URL);
266-
else
267-
wget -O $@ $(LAPACK_URL);
268-
endif
269-
endif
270-
endif
271-
272241
large.tgz :
273242
ifndef NOFORTRAN
274243
if [ ! -a $< ]; then

exports/Makefile

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ zip : dll
7575
zip $(LIBZIPNAME) $(LIBDLLNAME) $(LIBNAME)
7676

7777
dll : ../$(LIBDLLNAME)
78-
#libgoto2.dll
79-
80-
dll2 : libgoto2_shared.dll
8178

8279
# On Windows, we only generate a DLL without a version suffix. This is because
8380
# applications which link against the dynamic library reference a fixed DLL name
@@ -96,34 +93,23 @@ else
9693
-lib /machine:X64 /def:libopenblas.def
9794
endif
9895

99-
libgoto2_shared.dll : ../$(LIBNAME) libgoto2_shared.def
100-
$(CC) $(CFLAGS) $(LDFLAGS) libgoto2_shared.def -shared -o $(@F) \
101-
-Wl,--whole-archive ../$(LIBNAME) -Wl,--no-whole-archive \
102-
-Wl,--out-implib,libgoto2_shared.lib $(FEXTRALIB)
103-
10496
libopenblas.def : gensymbol
10597
perl ./gensymbol win2k $(ARCH) dummy $(EXPRECISION) $(NO_CBLAS) $(NO_LAPACK) $(NO_LAPACKE) $(NEED2UNDERSCORES) $(ONLY_CBLAS) > $(@F)
10698

107-
libgoto2_shared.def : gensymbol
108-
perl ./gensymbol win2k $(ARCH) dummy $(EXPRECISION) $(NO_CBLAS) $(NO_LAPACK) $(NO_LAPACKE) $(NEED2UNDERSCORES) $(ONLY_CBLAS) > $(@F)
109-
11099
libgoto_hpl.def : gensymbol
111100
perl ./gensymbol win2khpl $(ARCH) dummy $(EXPRECISION) $(NO_CBLAS) $(NO_LAPACK) $(NO_LAPACKE) $(NEED2UNDERSCORES) $(ONLY_CBLAS) > $(@F)
112101

113102
$(LIBDYNNAME) : ../$(LIBNAME) osx.def
114103
$(FC) $(FFLAGS) -all_load -headerpad_max_install_names -install_name $(CURDIR)/../$(LIBDYNNAME) -dynamiclib -o ../$(LIBDYNNAME) $< -Wl,-exported_symbols_list,osx.def $(FEXTRALIB)
115104

116-
symbol.$(SUFFIX) : symbol.S
117-
$(CC) $(CFLAGS) -c -o $(@F) $^
118-
119105
dllinit.$(SUFFIX) : dllinit.c
120106
$(CC) $(CFLAGS) -c -o $(@F) -s $<
121107

122108
ifeq ($(OSNAME), Linux)
123109

124110
so : ../$(LIBSONAME)
125111

126-
../$(LIBSONAME) : ../$(LIBNAME) linux.def linktest.c
112+
../$(LIBSONAME) : ../$(LIBNAME) linktest.c
127113
ifneq ($(C_COMPILER), LSB)
128114
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \
129115
-Wl,--whole-archive ../$(LIBNAME) -Wl,--no-whole-archive \
@@ -145,7 +131,7 @@ ifeq ($(OSNAME), $(filter $(OSNAME),FreeBSD NetBSD))
145131

146132
so : ../$(LIBSONAME)
147133

148-
../$(LIBSONAME) : ../$(LIBNAME) linux.def linktest.c
134+
../$(LIBSONAME) : ../$(LIBNAME) linktest.c
149135
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \
150136
-Wl,--whole-archive ../$(LIBNAME) -Wl,--no-whole-archive \
151137
$(FEXTRALIB) $(EXTRALIB)
@@ -197,18 +183,12 @@ static : ../$(LIBNAME)
197183
$(AR) -cq ../$(LIBNAME) goto.$(SUFFIX)
198184
rm -f goto.$(SUFFIX)
199185

200-
linux.def : gensymbol ../Makefile.system ../getarch.c
201-
perl ./gensymbol linux $(ARCH) $(BU) $(EXPRECISION) $(NO_CBLAS) $(NO_LAPACK) $(NO_LAPACKE) $(NEED2UNDERSCORES) $(ONLY_CBLAS) > $(@F)
202-
203186
osx.def : gensymbol ../Makefile.system ../getarch.c
204187
perl ./gensymbol osx $(ARCH) $(BU) $(EXPRECISION) $(NO_CBLAS) $(NO_LAPACK) $(NO_LAPACKE) $(NEED2UNDERSCORES) $(ONLY_CBLAS) > $(@F)
205188

206189
aix.def : gensymbol ../Makefile.system ../getarch.c
207190
perl ./gensymbol aix $(ARCH) $(BU) $(EXPRECISION) $(NO_CBLAS) $(NO_LAPACK) $(NO_LAPACKE) $(NEED2UNDERSCORES) $(ONLY_CBLAS) > $(@F)
208191

209-
symbol.S : gensymbol
210-
perl ./gensymbol win2kasm noarch dummy $(EXPRECISION) $(NO_CBLAS) $(NO_LAPACK) $(NO_LAPACKE) $(NEED2UNDERSCORES) $(ONLY_CBLAS) > symbol.S
211-
212192
test : linktest.c
213193
$(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) -lm && echo OK.
214194
rm -f linktest

exports/gensymbol

Lines changed: 1 addition & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -2725,8 +2725,7 @@ if ($ARGV[8] == 1) {
27252725
} elsif ($ARGV[5] == 1) {
27262726
#NO_LAPACK=1
27272727
@underscore_objs = (@blasobjs, @misc_underscore_objs);
2728-
} elsif (-d "../lapack-3.1.1" || -d "../lapack-3.4.0" || -d "../lapack-3.4.1" ||
2729-
-d "../lapack-3.4.2" || -d "../lapack-netlib") {
2728+
} elsif (-d "../lapack-netlib") {
27302729

27312730
if ($ARGV[7] == 0){
27322731
# NEED2UNDERSCORES=0
@@ -2771,46 +2770,13 @@ if ($ARGV[6] == 1) {
27712770
@no_underscore_objs = (@no_underscore_objs, @lapackeobjs);
27722771
}
27732772

2774-
@linuxobjs = ('__strtol_internal', 'exit', 'free', 'getenv', 'malloc',
2775-
'mmap', 'printf', 'sqrt',
2776-
'pthread_cond_broadcast', 'pthread_cond_destroy',
2777-
'pthread_cond_init', 'pthread_cond_signal', 'pthread_cond_wait',
2778-
'pthread_create', 'pthread_exit', 'pthread_join',
2779-
'pthread_mutex_destroy', 'pthread_mutex_init',
2780-
'pthread_mutex_lock', 'pthread_mutex_unlock');
2781-
27822773
@hplobjs = (daxpy, dcopy, dscal, idamax, dgemv, dtrsv, dger, dgemm, dtrsm);
27832774
@hplobjs2 = (HPL_dlaswp00N, HPL_dlaswp01N, HPL_dlaswp01T);
27842775

27852776
$bu = $ARGV[2];
27862777

27872778
$bu = "" if (($bu eq "0") || ($bu eq "1"));
27882779

2789-
if ($ARGV[0] eq "linux"){
2790-
2791-
@underscore_objs = (@underscore_objs, @misc_common_objs);
2792-
@no_underscore_objs = (@no_underscore_objs, @misc_common_objs);
2793-
2794-
foreach $objs (@underscore_objs) {
2795-
print $objs, $bu, "\n";
2796-
}
2797-
2798-
foreach $objs (@need_2underscore_objs) {
2799-
print $objs, $bu, $bu, "\n";
2800-
}
2801-
2802-
# if ($ARGV[4] == 0) {
2803-
foreach $objs (@no_underscore_objs) {
2804-
print $objs, "\n";
2805-
}
2806-
# }
2807-
2808-
foreach $objs (@linuxobjs) {
2809-
print $objs, "\n";
2810-
}
2811-
exit(0);
2812-
}
2813-
28142780
if ($ARGV[0] eq "osx"){
28152781

28162782
@underscore_objs = (@underscore_objs, @misc_common_objs);
@@ -2956,32 +2922,6 @@ if ($ARGV[0] eq "microsoft"){
29562922
exit(0);
29572923
}
29582924

2959-
if ($ARGV[0] eq "win2kasm"){
2960-
2961-
@underscore_objs = (@underscore_objs, @misc_common_objs);
2962-
2963-
print "\t.text\n";
2964-
foreach $objs (@underscore_objs) {
2965-
$uppercase = $objs;
2966-
$uppercase =~ tr/[a-z]/[A-Z]/;
2967-
print "\t.align 16\n";
2968-
print "\t.globl _", $uppercase, "_\n";
2969-
print "_", $uppercase, "_:\n";
2970-
print "\tjmp\t_", $objs, "_\n";
2971-
}
2972-
2973-
foreach $objs (@need_2underscore_objs) {
2974-
$uppercase = $objs;
2975-
$uppercase =~ tr/[a-z]/[A-Z]/;
2976-
print "\t.align 16\n";
2977-
print "\t.globl _", $uppercase, "__\n";
2978-
print "_", $uppercase, "__:\n";
2979-
print "\tjmp\t_", $objs, "__\n";
2980-
}
2981-
2982-
exit(0);
2983-
}
2984-
29852925
if ($ARGV[0] eq "linktest"){
29862926

29872927
@underscore_objs = (@underscore_objs, @misc_common_objs);

0 commit comments

Comments
 (0)