File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 14
14
ifeq ($(INTERFACE64),1)
15
15
USE_64BITINT=1
16
16
endif
17
+ ifeq ($(USE_OPENMP),1)
18
+ FOMP_OPT:= -fopenmp
19
+ endif
17
20
18
21
PREFIX ?= /opt/OpenBLAS
19
22
@@ -178,6 +181,7 @@ endif
178
181
@echo 'libnamesuffix='$(LIBNAMESUFFIX) >> "$(PKGFILE)"
179
182
@echo 'libsuffix='$(SYMBOLSUFFIX) >> "$(PKGFILE)"
180
183
@echo 'includedir='$(OPENBLAS_INCLUDE_DIR) >> "$(PKGFILE)"
184
+ @echo 'omp_opt='$(FOMP_OPT) >> "$(PKGFILE)"
181
185
@echo 'openblas_config= USE_64BITINT='$(INTERFACE64) 'DYNAMIC_ARCH='$(DYNAMIC_ARCH) 'DYNAMIC_OLDER='$(DYNAMIC_OLDER) 'NO_CBLAS='$(NO_CBLAS) 'NO_LAPACK='$(NO_LAPACK) 'NO_LAPACKE='$(NO_LAPACKE) 'NO_AFFINITY='$(NO_AFFINITY) 'USE_OPENMP='$(USE_OPENMP) $(TARGET) 'MAX_THREADS='$(NUM_THREADS)>> "$(PKGFILE)"
182
186
@echo 'version='$(VERSION) >> "$(PKGFILE)"
183
187
@echo 'extralib='$(PKG_EXTRALIB) >> "$(PKGFILE)"
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ Name: OpenBLAS
9
9
Description: OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version
10
10
Version: @OpenBLAS_VERSION@
11
11
URL: https://github.com/OpenMathLib/OpenBLAS
12
- Libs: @OpenMP_C_FLAGS@ -L${libdir} -l${libnameprefix}openblas${libnamesuffix}${libsuffix}
13
- Cflags: -I${includedir}
12
+ Libs: -L${libdir} -l${libnameprefix}openblas${libnamesuffix}${libsuffix}
13
+ Cflags: -I${includedir} @OpenMP_C_FLAGS@
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ Version: ${version}
4
4
URL: https://github.com/xianyi/OpenBLAS
5
5
Libs: -L${libdir} -l${libprefix}openblas${libnamesuffix}
6
6
Libs.private: ${extralib}
7
- Cflags: -I${includedir}
7
+ Cflags: -I${includedir} ${omp_opt}
You can’t perform that action at this time.
0 commit comments