Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37735938
en ru br
Репозитории ALT

Группа :: Науки/Математика
Пакет: openblas

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: openblas-0.3.23-alt.patch
Скачать


 Makefile                      |  2 +-
 Makefile.rule                 |  9 +++++----
 TargetList.txt                |  1 +
 driver/level3/gemm3m_level3.c |  2 ++
 getarch.c                     | 14 ++++++++++++++
 param.h                       |  2 +-
 6 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index 144b3400d..c598390c4 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ SUBDIRS_ALL = $(SUBDIRS) test ctest utest exports benchmark ../laswp ../bench cp
 .PHONY : all libs netlib $(RELA) test ctest shared install
 .NOTPARALLEL : all libs $(RELA) prof lapack-test install blas-test
 
-all :: libs netlib $(RELA) tests shared
+all :: libs netlib $(RELA) shared
 	@echo
 	@echo " OpenBLAS build complete. ($(LIB_COMPONENTS))"
 	@echo
diff --git a/Makefile.rule b/Makefile.rule
index ab46fd075..68ea58f51 100644
--- a/Makefile.rule
+++ b/Makefile.rule
@@ -56,7 +56,7 @@ VERSION = 0.3.23
 # specify it.
 # For force setting for single threaded, specify USE_THREAD = 0
 # For force setting for multi  threaded, specify USE_THREAD = 1
-# USE_THREAD = 0
+USE_THREAD = 1
 
 # If you want to build a single-threaded OpenBLAS, but expect to call this
 # from several concurrent threads in some other program, comment this in for
@@ -88,7 +88,7 @@ VERSION = 0.3.23
 # value (eg. 32-256) if you expect your users to use that many threads. Due to the way
 # some internal structures are allocated, using a large NUM_THREADS value has a RAM
 # footprint penalty, even if users reduce the actual number of threads at runtime.
-# NUM_THREADS = 24
+NUM_THREADS = 16
 
 # If you have enabled USE_OPENMP and your application would call
 # OpenBLAS's calculation API from multiple threads, please comment this in.
@@ -203,8 +203,8 @@ NO_AFFINITY = 1
 # time out to improve performance. This number should be from 4 to 30
 # which corresponds to (1 << n) cycles. For example, if you set to 26,
 # thread will be running for (1 << 26) cycles(about 25ms on 3.0GHz
-# system). Also you can control this number by THREAD_TIMEOUT
-# CCOMMON_OPT	+= -DTHREAD_TIMEOUT=26
+# system). Also you can control this mumber by THREAD_TIMEOUT
+CCOMMON_OPT	+= -DTHREAD_TIMEOUT=26
 
 # Using special device driver for mapping physically contiguous memory
 # to the user space. If bigphysarea is enabled, it will use it.
@@ -232,6 +232,7 @@ NO_AFFINITY = 1
 # The default -O2 is enough.
 # Flags for POWER8 are defined in Makefile.power. Don't modify COMMON_OPT
 # COMMON_OPT = -O2
+COMMON_OPT += -O2 -g -pipe -Wall
 
 # gfortran option for LAPACK to improve thread-safety
 # It is enabled by default in Makefile.system for gfortran
diff --git a/TargetList.txt b/TargetList.txt
index deef75819..10728a59d 100644
--- a/TargetList.txt
+++ b/TargetList.txt
@@ -63,6 +63,7 @@ CELL
 P5600
 MIPS1004K
 MIPS24K
+MIPS32_GENERIC
 
 4.MIPS64 CPU:
 MIPS64_GENERIC
diff --git a/driver/level3/gemm3m_level3.c b/driver/level3/gemm3m_level3.c
index d037e72cd..8462bd657 100644
--- a/driver/level3/gemm3m_level3.c
+++ b/driver/level3/gemm3m_level3.c
@@ -37,6 +37,8 @@
 /*********************************************************************/
 
 #include <stdio.h>
+#include "../../param.h"
+#undef PARAM_H
 #include "common.h"
 
 #ifndef BETA_OPERATION
diff --git a/getarch.c b/getarch.c
index 937a8db68..4bda044ac 100644
--- a/getarch.c
+++ b/getarch.c
@@ -1059,6 +1059,20 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #else
 #endif
 
+#ifdef FORCE_MIPS32_GENERIC
+#define FORCE
+#define ARCHITECTURE    "MIPS"
+#define SUBARCHITECTURE "GENERIC"
+#define SUBDIRNAME      "mips"
+#define ARCHCONFIG   "-DMIPS32_GENERIC " \
+       "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=32 " \
+       "-DL2_SIZE=1048576 -DL2_LINESIZE=32 " \
+       "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 -DNO_MSA"
+#define LIBNAME   "generic"
+#define CORENAME  "generic"
+#else
+#endif
+
 #ifdef FORCE_MIPS1004K
 #define FORCE
 #define ARCHITECTURE    "MIPS"
diff --git a/param.h b/param.h
index f1f5cbdad..725b3ea56 100644
--- a/param.h
+++ b/param.h
@@ -2947,7 +2947,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #define SYMV_P	16
 #endif
 
-#if defined(MIPS64_GENERIC) || defined(P5600) || defined(MIPS1004K) || defined(MIPS24K) || defined(I6400) || defined(P6600) || defined(I6500)
+#if defined(MIPS64_GENERIC) || defined(P5600) || defined(MIPS1004K) || defined(MIPS24K) || defined(I6400) || defined(P6600) || defined(I6500) || defined(MIPS32_GENERIC)
 #define SNUMOPT  2
 #define DNUMOPT  2
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin