We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fff40ce commit 9686037Copy full SHA for 9686037
src/Makefile
@@ -7,6 +7,7 @@ CUDA_ROOT?=/usr/local/cuda
7
USE_SHARED?=0
8
# Math libraries
9
HAVE_OPENBLAS_CLAPACK?=1
10
+HAVE_OPENBLAS?=0
11
HAVE_MKL?=0
12
HAVE_ACCELERATE=0
13
HAVE_CUDA?=0
@@ -80,6 +81,15 @@ ifeq ($(HAVE_OPENBLAS_CLAPACK), 1)
80
81
endif
82
83
84
+ifeq ($(HAVE_OPENBLAS), 1)
85
+ CFLAGS += -I$(OPENBLAS_ROOT)/include
86
+ ifeq ($(USE_SHARED), 0)
87
+ LIBS += $(OPENBLAS_ROOT)/lib/libopenblas.a
88
+ else
89
+ LDFLAGS += -lopenblas -lgfortan
90
+ endif
91
+endif
92
+
93
ifeq ($(HAVE_MKL), 1)
94
CFLAGS += -DHAVE_MKL=1 -I$(MKL_ROOT)/include
95
LDFLAGS += -L$(MKL_ROOT)/lib/intel64 -Wl,-rpath=$(MKL_ROOT)/lib/intel64 -lmkl_rt -lmkl_intel_lp64 -lmkl_core -lmkl_sequential
0 commit comments