Accepting request 638014 from home:mimi_vx:branches:science

- update to version 1.2
  * Support for LLVM/Clang 7.0 and 6.0
  * HWLOC 2.0 support
- build kernels with distro support - detect and load cpu
    optimized code on runtime

OBS-URL: https://build.opensuse.org/request/show/638014
OBS-URL: https://build.opensuse.org/package/show/science/pocl?expand=0&rev=41
This commit is contained in:
Dirk Stoecker 2018-09-25 11:19:16 +00:00 committed by Git OBS Bridge
parent 17aaac5cf0
commit f956c9995e
4 changed files with 22 additions and 17 deletions

View File

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

3
pocl-1.2.tar.gz Normal file
View File

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

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Sep 25 10:30:51 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>
- update to version 1.2
* Support for LLVM/Clang 7.0 and 6.0
* HWLOC 2.0 support
- build kernels with distro support - detect and load cpu
optimized code on runtime
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 30 04:53:06 UTC 2018 - bwiedemann@suse.com Mon Jul 30 04:53:06 UTC 2018 - bwiedemann@suse.com

View File

@ -13,13 +13,13 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%define sover 2.1.0 %define sover 2.2.0
Name: pocl Name: pocl
Version: 1.1 Version: 1.2
Release: 0 Release: 0
Summary: Portable Computing Language - an OpenCL implementation Summary: Portable Computing Language - an OpenCL implementation
# The whole code is under MIT # The whole code is under MIT
@ -28,11 +28,10 @@ Summary: Portable Computing Language - an OpenCL implementation
License: MIT License: MIT
Group: Development/Tools/Other Group: Development/Tools/Other
URL: http://portablecl.org/ URL: http://portablecl.org/
#Source0: http://portablecl.org/downloads/%{name}-%{version}.tar.gz
Source0: https://github.com/pocl/pocl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: https://github.com/pocl/pocl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source99: pocl-rpmlintrc Source99: pocl-rpmlintrc
BuildRequires: clang < 7 BuildRequires: clang < 8
BuildRequires: clang-devel < 7 BuildRequires: clang-devel < 8
BuildRequires: cmake BuildRequires: cmake
BuildRequires: libboost_headers-devel BuildRequires: libboost_headers-devel
BuildRequires: libtool BuildRequires: libtool
@ -45,7 +44,7 @@ BuildRequires: uthash-devel
BuildRequires: pkgconfig(OpenCL) BuildRequires: pkgconfig(OpenCL)
BuildRequires: pkgconfig(glew) BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(hwloc) BuildRequires: pkgconfig(hwloc)
Requires: clang < 7 Requires: clang < 8
Requires: gcc Requires: gcc
Requires: libstdc++-devel Requires: libstdc++-devel
Requires: libut2 Requires: libut2
@ -100,12 +99,12 @@ This subpackage provides the development files needed for pocl.
%define __builder ninja %define __builder ninja
%cmake \ %cmake \
-DENABLE_CUDA=0 \ -DENABLE_CUDA=0 \
-DENABLE_ICD=1 \ -DENABLE_ICD=ON \
-DPOCL_INSTALL_ICD_VENDORDIR=%{_sysconfdir}/OpenCL/vendors \ -DPOCL_INSTALL_ICD_VENDORDIR=%{_sysconfdir}/OpenCL/vendors \
-DCMAKE_C_COMPILER=clang \ -DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \ -DCMAKE_CXX_COMPILER=clang++ \
%ifarch %{ix86} x86_64 %ifarch %{ix86} x86_64
-DLLC_HOST_CPU=core2 \ -DKERNELLIB_HOST_CPU_VARIANTS=distro \
%endif %endif
-DEXTRA_KERNEL_CXX_FLAGS="%{optflags} -std=c++11" \ -DEXTRA_KERNEL_CXX_FLAGS="%{optflags} -std=c++11" \
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \ -DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \
@ -121,18 +120,15 @@ mv %{buildroot}%{_prefix}%{_libdir} %{buildroot}%{_libdir}
sed -i 's|%{_prefix}%{_prefix}/|%{_prefix}/|g' %{buildroot}%{_sysconfdir}/OpenCL/vendors/pocl.icd sed -i 's|%{_prefix}%{_prefix}/|%{_prefix}/|g' %{buildroot}%{_sysconfdir}/OpenCL/vendors/pocl.icd
# Unbundle vecmath # Unbundle vecmath
#rm -vf %%{buildroot}/%%{_libdir}/pocl/vecmath/ #rm -vf %%{buildroot}/%%{_libdir}/pocl/vecmath/
#ln -vs %%{_includedir}/vecmath %{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 # <visit0r> but you need to run the .py to generate the files under the pocl dir
#%%check
#cd build
#ctest
%post -n libpocl2 -p /sbin/ldconfig %post -n libpocl2 -p /sbin/ldconfig
%postun -n libpocl2 -p /sbin/ldconfig %postun -n libpocl2 -p /sbin/ldconfig
%files %files
%doc CHANGES README doc/sphinx/source/*.rst %doc CHANGES README doc/sphinx/source/*.rst
%license LICENSE
%dir %{_sysconfdir}/OpenCL/ %dir %{_sysconfdir}/OpenCL/
%dir %{_sysconfdir}/OpenCL/vendors %dir %{_sysconfdir}/OpenCL/vendors
%{_sysconfdir}/OpenCL/vendors/pocl.icd %{_sysconfdir}/OpenCL/vendors/pocl.icd