Compare commits

...

4 Commits
master ... f10

Author SHA1 Message Date
Fedora Release Engineering a25ddd0944 dist-git conversion 2010-07-28 10:27:09 +00:00
Bill Nottingham 1dee37af3b Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:31:35 +00:00
Dennis Gilmore 6323cd7ec3 setup sparc 2009-03-19 06:22:40 +00:00
Jesse Keating 3a48dd4fcd Initialize branch F-10 for atlas 2008-11-07 04:08:38 +00:00
4 changed files with 151 additions and 23 deletions

View File

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: atlas
# $Id$
NAME := atlas
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

94
atlas-sparc64.patch Normal file
View File

@ -0,0 +1,94 @@
diff -uNr ATLAS.orig/tune/blas/gemm/CASES/ATL_dmm4x4x16r8_US.c ATLAS/tune/blas/gemm/CASES/ATL_dmm4x4x16r8_US.c
--- ATLAS.orig/tune/blas/gemm/CASES/ATL_dmm4x4x16r8_US.c 2009-01-26 21:20:44.000000000 -0600
+++ ATLAS/tune/blas/gemm/CASES/ATL_dmm4x4x16r8_US.c 2009-03-18 00:02:10.000000000 -0500
@@ -107,6 +107,11 @@
#define incBn %g4
#define pfB %g5
+#if defined(__sparc__) && defined(__arch64__)
+ .register %g2, #scratch
+ .register %g3, #scratch
+#endif
+
#ifdef DCPLX
#define incCm 64
#define CSH 4
diff -uNr ATLAS.orig/tune/blas/gemm/CASES/ATL_dmm4x4x2_US.c ATLAS/tune/blas/gemm/CASES/ATL_dmm4x4x2_US.c
--- ATLAS.orig/tune/blas/gemm/CASES/ATL_dmm4x4x2_US.c 2009-01-26 21:20:41.000000000 -0600
+++ ATLAS/tune/blas/gemm/CASES/ATL_dmm4x4x2_US.c 2009-03-18 00:02:20.000000000 -0500
@@ -95,6 +95,11 @@
#define incBm %g3
#define incBn %g4
+#if defined(__sparc__) && defined(__arch64__)
+ .register %g2, #scratch
+ .register %g3, #scratch
+#endif
+
#ifdef DCPLX
#define incCm 64
#define CSH 4
diff -uNr ATLAS.orig/tune/blas/gemm/CASES/ATL_dmm4x4x8_US.c ATLAS/tune/blas/gemm/CASES/ATL_dmm4x4x8_US.c
--- ATLAS.orig/tune/blas/gemm/CASES/ATL_dmm4x4x8_US.c 2009-01-26 21:20:40.000000000 -0600
+++ ATLAS/tune/blas/gemm/CASES/ATL_dmm4x4x8_US.c 2009-03-18 00:02:31.000000000 -0500
@@ -107,6 +107,11 @@
#define incBn %g4
#define pfB %g5
+#if defined(__sparc__) && defined(__arch64__)
+ .register %g2, #scratch
+ .register %g3, #scratch
+#endif
+
#ifdef DCPLX
#define CMUL(arg_) ((arg_)*2)
#define incCm 64
diff -uNr ATLAS.orig/tune/blas/gemm/CASES/ATL_smm4x4x16_US.c ATLAS/tune/blas/gemm/CASES/ATL_smm4x4x16_US.c
--- ATLAS.orig/tune/blas/gemm/CASES/ATL_smm4x4x16_US.c 2009-01-26 21:20:48.000000000 -0600
+++ ATLAS/tune/blas/gemm/CASES/ATL_smm4x4x16_US.c 2009-03-18 00:03:02.000000000 -0500
@@ -93,6 +93,12 @@
#define rC23 %f30
#define rC33 %f31
#define FSIZE 64
+
+#if defined(__sparc__) && defined(__arch64__)
+ .register %g2, #scratch
+ .register %g3, #scratch
+#endif
+
#ifdef SCPLX
#define CSH 3
#define CMUL(arg_) ((arg_)*2)
diff -uNr ATLAS.orig/tune/blas/gemm/CASES/ATL_smm4x4x2_US.c ATLAS/tune/blas/gemm/CASES/ATL_smm4x4x2_US.c
--- ATLAS.orig/tune/blas/gemm/CASES/ATL_smm4x4x2_US.c 2009-01-26 21:20:43.000000000 -0600
+++ ATLAS/tune/blas/gemm/CASES/ATL_smm4x4x2_US.c 2009-03-18 00:03:32.000000000 -0500
@@ -93,6 +93,12 @@
#define rC23 %f30
#define rC33 %f31
#define FSIZE 64
+
+#if defined(__sparc__) && defined(__arch64__)
+ .register %g2, #scratch
+ .register %g3, #scratch
+#endif
+
#ifdef SCPLX
#define CSH 3
#define CMUL(arg_) ((arg_)*2)
diff -uNr ATLAS.orig/tune/blas/gemm/CASES/ATL_smm4x4x72_US.c ATLAS/tune/blas/gemm/CASES/ATL_smm4x4x72_US.c
--- ATLAS.orig/tune/blas/gemm/CASES/ATL_smm4x4x72_US.c 2009-01-26 21:20:43.000000000 -0600
+++ ATLAS/tune/blas/gemm/CASES/ATL_smm4x4x72_US.c 2009-03-18 00:03:50.000000000 -0500
@@ -108,6 +108,12 @@
#define rC23 %f30
#define rC33 %f31
#define FSIZE 64
+
+#if defined(__sparc__) && defined(__arch64__)
+ .register %g2, #scratch
+ .register %g3, #scratch
+#endif
+
#ifdef SCPLX
#define CSH 3
#define CMUL(arg_) ((arg_)*2)
Binary files ATLAS.orig/xconfig and ATLAS/xconfig differ

View File

@ -1,6 +1,6 @@
Name: atlas
Version: 3.6.0
Release: 15%{?dist}
Release: 16%{?dist}
Summary: Automatically Tuned Linear Algebra Software
Group: System Environment/Libraries
@ -11,6 +11,7 @@ Source1: README.Fedora
Patch0: http://ftp.debian.org/debian/pool/main/a/atlas3/%{name}3_%{version}-20.diff.gz
Patch1: %{name}-%{version}-gfortran.patch
Patch2: %{name}-%{version}-ia64-configure.patch
Patch3: atlas-sparc64.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: /etc/ld.so.conf.d
@ -134,6 +135,30 @@ optimizations for the 3DNow extensions to the ix86 architecture.
%define types ev6
%endif
%ifarch sparcv9 sparc64
%define archt sparc
%define types base v9
%endif
%ifarch sparcv9 sparc64
%package v9
Summary: ATLAS libraries for ultrasparc
Group: System Environment/Libraries
%description v9
This package contains the ATLAS (Automatically Tuned Linear Algebra
Software) libraries compiled with optimizations for the v9
extensions to the sparc architecture.
%package v9-devel
Summary: Development libraries for ATLAS with ultrasparc optimisations
Group: Development/Libraries
Requires: %{name}-v9 = %{version}-%{release}
%description v9-devel
This package contains headers and static versions of the ATLAS
(Automatically Tuned Linear Algebra Software) libraries compiled with
optimizations for the v9 extensions to the sparc architecture.
%endif
%if "%{?enable_custom_atlas}" == "1"
# This flag enables building customized ATLAS libraries with all
# compile-time optimizations. Note that compilation will take a very
@ -165,6 +190,7 @@ all compile-time optimizations enabled.
%patch0 -p1
%patch1 -p0
%patch2 -p1
%patch3 -p1
cp %{SOURCE1} doc
@ -413,6 +439,15 @@ rm -rf $RPM_BUILD_ROOT
%postun -n atlas-3dnow -p /sbin/ldconfig
%endif
%ifarch sparcv9 sparc64
%post -n atlas-v9 -p /sbin/ldconfig
%postun -n atlas-v9 -p /sbin/ldconfig
%endif
%if "%{?enable_custom_atlas}" == "1"
%post -n atlas-custom -p /sbin/ldconfig
@ -504,10 +539,30 @@ rm -rf $RPM_BUILD_ROOT
%endif
%ifarch sparcv9 sparc64
%files v9
%defattr(-,root,root,-)
%doc debian/copyright doc/README.Fedora
%dir %{_libdir}/v9
%{_libdir}/v9/*.so.*
%config(noreplace) /etc/ld.so.conf.d/atlas-v9.conf
%files v9-devel
%defattr(-,root,root,-)
%doc debian/copyright doc
%dir %{_libdir}/v9
%{_libdir}/v9/*.so
%{_libdir}/v9/*.a
%{_includedir}/atlas
%endif
%endif
%changelog
* Thu Feb 28 2008 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-15
* Mon Jan 26 2009 Dennis Gilmore <dennis@ausil.us> 3.6.0-16
- build v9 sub packages on sparc
* Wed May 7 2008 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-15
- Disable altivec package--it is causing illegal instructions during build.
* Thu Feb 28 2008 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-14