[libflatarray/el6] Initial SETUP.

Christopher Meng cicku at fedoraproject.org
Fri Feb 14 01:21:09 UTC 2014


commit b8d456c1e0adb229617adb46efbe8dd76cfb0e9e
Author: Christopher Meng <i at cicku.me>
Date:   Fri Feb 14 09:21:10 2014 +0800

    Initial SETUP.

 .gitignore        |    1 +
 libflatarray.spec |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 59 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..90c0abb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libflatarray-0.1.1.tar.bz2
diff --git a/libflatarray.spec b/libflatarray.spec
new file mode 100644
index 0000000..ae54c95
--- /dev/null
+++ b/libflatarray.spec
@@ -0,0 +1,57 @@
+Name:           libflatarray
+Version:        0.1.1
+Release:        1%{?dist}
+Summary:        C++ library for highly efficient multi-dimensional arrays
+License:        Boost
+URL:            http://www.libgeodecomp.org/libflatarray.html
+Source0:        http://www.libgeodecomp.org/archive/libflatarray-%{version}.tar.bz2
+BuildRequires:  boost-devel
+BuildRequires:  cmake
+
+%description
+LibFlatArray acts as a highly efficient multi-dimensional array of
+arbitrary objects (array of structs, AoS), but really uses a struct of
+arrays (SoA) memory layout. It's great for writing vectorized code and
+its lightning-fast iterators give you access to neighboring elements
+with zero address generation overhead.
+
+Use cases include:
+- computer simulations (e.g. stencil codes such as Lattice Boltzmann Methods)
+- image processing (e.g. Gaussian filters)
+- numerical methods (e.g. multiplication of complex matrices)
+
+The library is written in C++ and uses templates to shift the burden
+of address computation from runtime to compile time. It shares some
+infrastructure with its parent project LibGeoDecomp.
+
+%package        devel
+Summary:        Development files for %{name}
+#Requires:       %{name}%{?_isa} = %{version}-%{release}
+Provides:       %{name}-static = %{version}-%{release}
+
+%description    devel
+#This package contains libraries and header files for
+This package contains header files for
+developing applications that use %{name}.
+
+%prep
+%setup -q
+
+%build
+%cmake -DWITH_CUDA=OFF .
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+
+%files devel
+%doc AUTHORS LICENSE README
+%doc examples/
+%dir %{_includedir}/libflatarray
+%{_includedir}/libflatarray/aligned_allocator.hpp
+%{_includedir}/libflatarray/cuda_allocator.hpp
+%{_includedir}/libflatarray/flat_array.hpp
+
+%changelog
+* Sun Jan 26 2014 Christopher Meng <rpm at cicku.me> - 0.1.1-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..651c5bd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1aed02ed2a9af814dbbe10c456806ece  libflatarray-0.1.1.tar.bz2


More information about the scm-commits mailing list