File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ CUDA_ROOT?=/usr/local/cuda
7
7
USE_SHARED? =0
8
8
# Math libraries
9
9
HAVE_OPENBLAS_CLAPACK? =1
10
+ HAVE_OPENBLAS_NO_F2C? =0
10
11
HAVE_MKL? =0
11
12
HAVE_ACCELERATE =0
12
13
HAVE_CUDA? =0
@@ -80,6 +81,18 @@ ifeq ($(HAVE_OPENBLAS_CLAPACK), 1)
80
81
endif
81
82
endif
82
83
84
+ ifeq ($(HAVE_OPENBLAS_NO_F2C ) , 1)
85
+ CFLAGS += -I$(OPENBLAS_ROOT ) /include
86
+ ifeq ($(USE_SHARED), 0)
87
+ LIBS += \
88
+ $(OPENBLAS_ROOT ) /lib/libopenblas.a \
89
+ $(OPENBLAS_ROOT ) /lib/liblapack.a \
90
+ $(OPENBLAS_ROOT ) /lib/libblas.a
91
+ else
92
+ LDFLAGS += -lopenblas -llapack -lblas
93
+ endif
94
+ endif
95
+
83
96
ifeq ($(HAVE_MKL ) , 1)
84
97
CFLAGS += -DHAVE_MKL=1 -I$(MKL_ROOT ) /include
85
98
LDFLAGS += -L$(MKL_ROOT ) /lib/intel64 -Wl,-rpath=$(MKL_ROOT ) /lib/intel64 -lmkl_rt -lmkl_intel_lp64 -lmkl_core -lmkl_sequential
You can’t perform that action at this time.
0 commit comments