Skip to content

Commit 2a507a9

Browse files
author
kalibera
committed
Experimental support to use OpenBLAS BLAS on Windows.
git-svn-id: https://svn.r-project.org/R/trunk@87317 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 333d192 commit 2a507a9

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/extra/blas/Makefile.win

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ ifeq "$(USE_ATLAS)" "YES"
1313
@$(ECHO) -------- Building $@ --------
1414
$(DLL) -s -shared $(DLLFLAGS) -o $@ $^ Rblas.def \
1515
-L../../../$(IMPDIR) -lR -L"$(ATLAS_PATH)" -lf77blas -latlas
16+
else ifeq "$(USE_OPENBLAS)" "YES"
17+
../../../$(BINDIR)/Rblas.dll: blas00.o ../../gnuwin32/dllversion.o
18+
@$(ECHO) -------- Building $@ --------
19+
$(DLL) -s -shared $(DLLFLAGS) -o $@ $^ Rblas.def \
20+
-L../../../$(IMPDIR) -lR $(shell $(PKG_CONFIG) --libs openblas)
1621
else
1722
../../../$(BINDIR)/Rblas.dll: blas.o blas2.o cmplxblas.o cmplxblas2.o ../../gnuwin32/dllversion.o
1823
@$(ECHO) -------- Building $@ --------

src/gnuwin32/MkRules.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@
6262
# USE_ATLAS = NO
6363
# ATLAS_PATH =
6464

65+
# Set to YES if you want to use OPENBLAS. OPENBLAS libraries are looked up
66+
# using pkg-config. OPENBLAS and pkg-config are part of Rtools.
67+
# USE_OPENBLAS = NO
68+
6569
# Support for the ACML and Goto BLASes has been withdrawn: see R-admin.html
6670

6771
# Define to use svnversion to set SVN-REVISION (slow, and requires a clean

src/gnuwin32/MkRules.rules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ LOCAL_SOFT ?= $(shell which `echo $(CC) | sed -e 's/ .*//g'` | sed -e 's!/bin/[^
77
EXT_LIBS ?= $(LOCAL_SOFT)
88
G_FLAG ?= $(if $(USE_LLVM),-g3,-gdwarf-2)
99
USE_ATLAS ?= NO
10+
USE_OPENBLAS ?= NO
1011
ATLAS_PATH ?=
1112
TOOL_PATH ?=
1213
BINPREF64 ?=

0 commit comments

Comments
 (0)