Stephan Kulow 2014-07-18 12:03:54 +00:00 committed by Git OBS Bridge
commit 22d9f5929b
5 changed files with 21 additions and 81 deletions

3
openblas-0.2.10.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:210ba4ba9f20275ebe9edb7cd555f1d8374a5797a3d2a8382e12e33ca3304b24
size 9710803

View File

@ -1,72 +0,0 @@
diff --git a/driver/others/dynamic.c b/driver/others/dynamic.c
index 7b7beb9..ec421d6 100644
--- a/driver/others/dynamic.c
+++ b/driver/others/dynamic.c
@@ -116,18 +116,24 @@ extern void openblas_warning(int verbose, const char * msg);
static int get_vendor(void){
int eax, ebx, ecx, edx;
- char vendor[13];
+
+ union
+ {
+ char vchar[16];
+ int vint[4];
+ } vendor;
cpuid(0, &eax, &ebx, &ecx, &edx);
-
- *(int *)(&vendor[0]) = ebx;
- *(int *)(&vendor[4]) = edx;
- *(int *)(&vendor[8]) = ecx;
- vendor[12] = (char)0;
- if (!strcmp(vendor, "GenuineIntel")) return VENDOR_INTEL;
- if (!strcmp(vendor, "AuthenticAMD")) return VENDOR_AMD;
- if (!strcmp(vendor, "CentaurHauls")) return VENDOR_CENTAUR;
+ *(&vendor.vint[0]) = ebx;
+ *(&vendor.vint[1]) = edx;
+ *(&vendor.vint[2]) = ecx;
+
+ vendor.vchar[12] = '\0';
+
+ if (!strcmp(vendor.vchar, "GenuineIntel")) return VENDOR_INTEL;
+ if (!strcmp(vendor.vchar, "AuthenticAMD")) return VENDOR_AMD;
+ if (!strcmp(vendor.vchar, "CentaurHauls")) return VENDOR_CENTAUR;
if ((eax == 0) || ((eax & 0x500) != 0)) return VENDOR_INTEL;
@@ -232,7 +238,7 @@ static gotoblas_t *get_coretype(void){
if (family <= 0xe) {
// Verify that CPU has 3dnow and 3dnowext before claiming it is Athlon
cpuid(0x80000000, &eax, &ebx, &ecx, &edx);
- if (eax & 0xffff >= 0x01) {
+ if ( (eax & 0xffff) >= 0x01) {
cpuid(0x80000001, &eax, &ebx, &ecx, &edx);
if ((edx & (1 << 30)) == 0 || (edx & (1 << 31)) == 0)
return NULL;
diff --git a/kernel/arm/gemv_n.c b/kernel/arm/gemv_n.c
index aedcca9..a295080 100644
--- a/kernel/arm/gemv_n.c
+++ b/kernel/arm/gemv_n.c
@@ -61,7 +61,7 @@ int CNAME(BLASLONG m, BLASLONG n, BLASLONG dummy1, FLOAT alpha, FLOAT *a, BLASLO
a_ptr += lda;
ix += inc_x;
}
-
+ return(0);
}
diff --git a/kernel/arm/gemv_t.c b/kernel/arm/gemv_t.c
index 8fd6a66..f94db40 100644
--- a/kernel/arm/gemv_t.c
+++ b/kernel/arm/gemv_t.c
@@ -61,6 +61,7 @@ int CNAME(BLASLONG m, BLASLONG n, BLASLONG dummy1, FLOAT alpha, FLOAT *a, BLASLO
iy += inc_y;
a_ptr += lda;
}
+ return(0);
}

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a9ce75fe29f8527467b159490facca0bfc62e8a40a165b51822caa46368b0dc0
size 9700585

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Thu Jul 17 20:44:58 UTC 2014 - dmitry_r@opensuse.org
- Update to version 0.2.10
* Added BLAS extensions as following.
s/d/c/zaxpby, s/d/c/zimatcopy, s/d/c/zomatcopy.
* Added OPENBLAS_CORETYPE environment for dynamic_arch. (a86d34)
* Support outputing the CPU corename on runtime.(#407)
* Patched LAPACK to fix bug 114, 117, 118.
(http://www.netlib.org/lapack/bug_list.html)
* Disabled ?gemm3m for a work-around fix. (#400)
* Fixed lots of bugs for optimized kernels on sandybridge,Haswell,
bulldozer, and piledriver.
* Remove obsolete openblas-0.2.9-gcc-warnings.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 10 14:34:02 UTC 2014 - dmitry_r@opensuse.org Tue Jun 10 14:34:02 UTC 2014 - dmitry_r@opensuse.org

View File

@ -17,23 +17,21 @@
Name: openblas Name: openblas
Version: 0.2.9 Version: 0.2.10
Release: 0 Release: 0
Summary: An optimized BLAS library based on GotoBLAS2 Summary: An optimized BLAS library based on GotoBLAS2
License: BSD-3-Clause License: BSD-3-Clause
Group: Productivity/Scientific/Math Group: Productivity/Scientific/Math
Url: http://www.openblas.net Url: http://www.openblas.net
Source0: https://github.com/xianyi/OpenBLAS/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: https://github.com/xianyi/OpenBLAS/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM openblas-0.2.8-libs.patch: Link against libgfortran # PATCH-FIX-UPSTREAM openblas-libs.patch: Link against libgfortran
Patch0: openblas-libs.patch Patch0: openblas-libs.patch
# PATCH-FIX-UPSTREAM c_xerbla_no-void-return.patch # PATCH-FIX-UPSTREAM c_xerbla_no-void-return.patch
Patch1: c_xerbla_no-void-return.patch Patch1: c_xerbla_no-void-return.patch
# PATCH-FEATURE-OPENSUSE openblas-0.1.0-soname.patch # PATCH-FEATURE-OPENSUSE openblas-0.1.0-soname.patch
Patch2: openblas-0.1.0-soname.patch Patch2: openblas-0.1.0-soname.patch
# PATCH-FIX-UPSTREAM openblas-0.2.8-noexecstack.patch # PATCH-FIX-UPSTREAM openblas-noexecstack.patch
Patch3: openblas-noexecstack.patch Patch3: openblas-noexecstack.patch
# PATCH-FIX-UPSTREAM openblas-0.2.9-gcc-warnings.patch -- Fix GCC warnings (bug#385)
Patch4: openblas-0.2.9-gcc-warnings.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 ia64 ppc ppc64 x86_64 ExclusiveArch: %ix86 ia64 ppc ppc64 x86_64
BuildRequires: gcc-fortran BuildRequires: gcc-fortran
@ -114,7 +112,6 @@ cd OpenBLAS-%{version}
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1 %patch3 -p1
%patch4 -p1
cd .. cd ..
# prepare build for serial, threaded and OpenMP versions # prepare build for serial, threaded and OpenMP versions