Skip to content

Commit

Permalink
Merge pull request JuliaLang#9277 from JuliaLang/tk/openblas-0.2.13
Browse files Browse the repository at this point in the history
RFC: Bump OpenBLAS to v0.2.13
  • Loading branch information
tkelman committed Dec 10, 2014
2 parents 8fd5aa9 + 2fc6d3c commit de7339c
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 340 deletions.
8 changes: 8 additions & 0 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

# OPENBLAS build options
OPENBLAS_TARGET_ARCH=
OPENBLAS_SYMBOLSUFFIX=

# If OPENBLAS_TARGET_ARCH is set, we default to disabling OPENBLAS_DYNAMIC_ARCH
ifneq ($(OPENBLAS_TARGET_ARCH),)
Expand Down Expand Up @@ -752,6 +753,13 @@ LIBBLASNAME = libsatlas
LIBLAPACKNAME = $(LIBBLASNAME)
endif

# Renaming OpenBLAS symbols, see #4923 and #8734
ifeq ($(USE_SYSTEM_BLAS), 0)
ifeq ($(USE_BLAS64), 1)
OPENBLAS_SYMBOLSUFFIX = 64_
endif
endif

# Custom libcxx
ifeq ($(BUILD_CUSTOM_LIBCXX),1)
LDFLAGS += -L$(build_libdir) -lc++abi
Expand Down
7 changes: 3 additions & 4 deletions deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ endif

# 64-bit BLAS interface
ifeq ($(USE_BLAS64), 1)
OPENBLAS_BUILD_OPTS += INTERFACE64=1 SYMBOLSUFFIX="64_"
OPENBLAS_BUILD_OPTS += INTERFACE64=1 SYMBOLSUFFIX="$(OPENBLAS_SYMBOLSUFFIX)"
ifeq ($(OS), Darwin)
OPENBLAS_BUILD_OPTS += OBJCONV=$(JULIAHOME)/deps/objconv/objconv
$(OPENBLAS_OBJ_SOURCE): $(OBJCONV_SOURCE)
Expand Down Expand Up @@ -930,7 +930,6 @@ endif
mkdir -p openblas-$(OPENBLAS_VER) && \
$(TAR) -C openblas-$(OPENBLAS_VER) --strip-components 1 -xf $<
perl -i -ple 's/^\s*(EXTRALIB\s*\+=\s*-lSystemStubs)\s*$$/# $$1/g' openblas-$(OPENBLAS_VER)/Makefile.system
cd openblas-$(OPENBLAS_VER) && patch -p1 < ../openblas-symbol-rename.patch
echo 1 > $@
$(OPENBLAS_OBJ_SOURCE): openblas-$(OPENBLAS_VER)/config.status
$(MAKE) -C openblas-$(OPENBLAS_VER) $(OPENBLAS_BUILD_OPTS) || (echo "*** Clean the OpenBLAS build with 'make -C deps clean-openblas'. Rebuild with 'make OPENBLAS_USE_THREAD=0 if OpenBLAS had trouble linking libpthread.so, and with 'make OPENBLAS_TARGET_ARCH=NEHALEM' if there were errors building SandyBridge support. Both these options can also be used simultaneously. ***" && false)
Expand Down Expand Up @@ -1101,7 +1100,7 @@ ARPACK_FFLAGS += -i8
else
ARPACK_FFLAGS += -fdefault-integer-8
ifeq ($(USE_SYSTEM_BLAS), 0)
ifneq ($(USE_INTEL_MKL), 1)
ifeq ($(OPENBLAS_SYMBOLSUFFIX), 64_)
ARPACK_FFLAGS += -cpp -ffixed-line-length-none
ARPACK_OPENBLASFCNS1 = axpy copy gemv geqr2 lacpy lahqr lanhs larnv lartg lascl laset scal trevc trmm trsen
ARPACK_OPENBLASFCNS2 = dot ger labad laev2 lamch lanst lanv2 lapy2 larf larfg lasr nrm2 orm2r rot steqr swap
Expand Down Expand Up @@ -1373,7 +1372,7 @@ UMFPACK_CONFIG = -DLONGBLAS='long long'
CHOLMOD_CONFIG = -DLONGBLAS='long long'
SPQR_CONFIG = -DLONGBLAS='long long'
ifeq ($(USE_SYSTEM_BLAS), 0)
ifneq ($(USE_INTEL_MKL), 1)
ifeq ($(OPENBLAS_SYMBOLSUFFIX), 64_)
UMFPACK_CONFIG += -DSUN64
CHOLMOD_CONFIG += -DSUN64
SPQR_CONFIG += -DSUN64
Expand Down
2 changes: 1 addition & 1 deletion deps/Versions.make
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ LLVM_VER = 3.3
LLVM_LIB_SUFFIX =
PCRE_VER = 8.36
DSFMT_VER = 2.2
OPENBLAS_VER = v0.2.12
OPENBLAS_VER = v0.2.13
LAPACK_VER = 3.5.0
ARPACK_VER = 3.2.0
FFTW_VER = 3.3.4
Expand Down
1 change: 0 additions & 1 deletion deps/checksums/openblas-v0.2.12.tar.gz/md5

This file was deleted.

1 change: 0 additions & 1 deletion deps/checksums/openblas-v0.2.12.tar.gz/sha512

This file was deleted.

1 change: 1 addition & 0 deletions deps/checksums/openblas-v0.2.13.tar.gz/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
74adf4c0d0d82bff4774be5bf2134183
1 change: 1 addition & 0 deletions deps/checksums/openblas-v0.2.13.tar.gz/sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e3c8d3f7c7f9593a863cba2679f3cf5872138b0aa0f2a61cac15901364489c9a6bff0c166813d154bc0d91118302585ac1340eaaeb7dc11c8aad92757bbf86ba
Loading

0 comments on commit de7339c

Please sign in to comment.