[pocl/f19] Initial commit
Fabian Deutsch
fabiand at fedoraproject.org
Fri Aug 30 12:32:32 UTC 2013
commit f50038f7b1f70eb13fe47db0337ef62207b2c50b
Author: Fabian Deutsch <fabiand at fedoraproject.org>
Date: Fri Aug 30 14:18:09 2013 +0200
Initial commit
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
.gitignore | 1 +
pocl.spec | 160 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 162 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..efe8fe6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pocl-0.8.tar.gz
diff --git a/pocl.spec b/pocl.spec
new file mode 100644
index 0000000..0e74886
--- /dev/null
+++ b/pocl.spec
@@ -0,0 +1,160 @@
+
+Summary: Portable Computing Language
+Name: pocl
+Version: 0.8
+Release: 7%{?dist}
+# The whole code is under MIT
+# except include/utlist.h which is under BSD (and unbundled) and
+# except lib/kernel/vecmath which is under GPLv3+ or LGPLv3+ (and unbundled in future)
+License: MIT and BSD and (GPLv3+ or LGPLv3+)
+Group: System Environment/Libraries
+URL: http://pocl.sourceforge.net
+Source0: http://pocl.sourceforge.net/downloads/pocl-%{version}.tar.gz
+
+# Only armv7l is supported
+ExcludeArch: armv7hl
+# PPC support is currently broken, due to path problems
+ExcludeArch: ppc
+ExcludeArch: ppc64
+
+BuildRequires: pkgconfig automake autoconf libtool libtool-ltdl-devel
+BuildRequires: opencl-filesystem opencl-headers ocl-icd-devel
+BuildRequires: mesa-libGL-devel
+BuildRequires: llvm-devel clang
+BuildRequires: hwloc-devel
+BuildRequires: uthash-devel
+#BuildRequires: vecmath-devel
+
+Requires: opencl-filesystem
+Requires: clang
+Requires: uthash
+
+
+%description
+Pocl's goal is to become an efficient open source (MIT-licensed) implementation
+of the OpenCL 1.2 (and soon OpenCL 2.0) standard.
+
+In addition to producing an easily portable open-source OpenCL implementation,
+another major goal of this project is improving performance portability of
+OpenCL programs with compiler optimizations, reducing the need for
+target-dependent manual optimizations.
+
+At the core of pocl is the kernel compiler that consists of a set of LLVM
+passes used to statically transform kernels into work-group functions with
+multiple work-items, even in the presence of work-group barriers. These
+functions are suitable for parallelization in multiple ways (SIMD, VLIW,
+superscalar,...).
+
+
+%package devel
+Summary: Portable Computing Lanugage development files
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: pkgconfig
+Requires: opencl-headers
+
+
+%description devel
+Portable Computing Lanugage development files
+
+
+%prep
+%setup -q
+
+# Unbundle uthash
+find . -depth -name utlist* | xargs rm -f
+
+
+%build
+%configure --disable-static \
+ --enable-icd \
+ --enable-tests-with-icd=default
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=%{buildroot}
+
+# NOTE: We intentionally don't ship *.la files
+find %{buildroot} -type f -name '*.la' | xargs rm -f -- || :
+
+# Unbundle utlist.h
+rm -vf %{buildroot}/%{_includedir}/pocl/utlist.h
+ln -vs %{_includedir}/utlist.h %{buildroot}/%{_includedir}/pocl/utlist.h
+
+# Unbundle vecmath
+#rm -vf %{buildroot}/%{_libdir}/pocl/vecmath/
+#ln -vs %{_includedir}/vecmath %{buildroot}/%{_libdir}/pocl/vecmath
+# <visit0r> but you need to run the .py to generate the files under the pocl dir
+
+
+%check
+make check
+
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc README
+%{_sysconfdir}/OpenCL/vendors/pocl.icd
+%{_bindir}/pocl-standalone
+%{_libdir}/libpocl.so.1.1.0
+%{_libdir}/libpocl.so.1
+%{_libdir}/libpoclu.so.1.1.0
+%{_libdir}/libpoclu.so.1
+%{_libdir}/pocl/
+%{_datadir}/pocl/
+# Is required at runtime to build kernels
+%{_includedir}/pocl/
+
+
+%files devel
+%{_libdir}/libpoclu.so
+%{_libdir}/libpocl.so
+%{_libdir}/pkgconfig/pocl.pc
+%{_includedir}/poclu.h
+
+
+%changelog
+* Wed Aug 28 2013 Fabian Deutsch <fabiand at fedoraproject.org> - 0.8-7
+- Add requirements on opencl-filesystem and uthash
+- Remove uthash sources during prep
+- Fix license field
+
+* Mon Aug 19 2013 Fabian Deutsch <fabiand at fedoraproject.org> - 0.8-6
+- Move includedir to base package. This is required to build
+ kernels at runtime.
+
+* Thu Aug 15 2013 Fabian Deutsch <fabiand at fedoraproject.org> - 0.8-5
+- Unbundle uthash
+- Updated licenses
+
+* Wed Aug 14 2013 Fabian Deutsch <fabiand at fedoraproject.org> - 0.8-4
+- Drop -libs subpackage
+- Fix -devel BR on base package
+
+* Wed Aug 14 2013 Fabian Deutsch <fabiand at fedoraproject.org> - 0.8-3
+- Add check
+- Enforce ICD usage
+- Fix duplicate file warnings
+
+* Tue Aug 13 2013 Fabian Deutsch <fabiand at fedoraproject.org> - 0.8-2
+- Own some dirs
+- Fix -devel libraries
+- Add hwloc, llvm, mesa-libGL BR
+- Glob for bc and type files
+- ExcludeArch armv7hl
+
+* Mon Aug 12 2013 Fabian Deutsch <fabiand at fedoraproject.org> - 0.8-1
+- Update to 0.8
+- Better description
+- Fix SourceUrl
+
+* Sun Aug 11 2013 Fabian Deutsch <fabiand at fedoraproject.org> - 0.8pre-0.2
+- Updated bzr snapshot
+
+* Wed Feb 27 2013 Dave Airlie <airlied at redhat.com> - 0.8pre-0.1
+- first import
+
diff --git a/sources b/sources
index e69de29..8260ed6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1807335abd66537e6cd5bc3c465e68df pocl-0.8.tar.gz
More information about the scm-commits
mailing list