2015-06-10 20:42:22 +02:00
|
|
|
#
|
|
|
|
# spec file for package pocl
|
|
|
|
#
|
2022-06-08 22:53:15 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2015-06-10 20:42:22 +02:00
|
|
|
# Copyright (c) 2014 Guillaume GARDET <guillaume@opensuse.org>
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-09-25 13:19:16 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-06-10 20:42:22 +02:00
|
|
|
#
|
|
|
|
|
2015-10-26 22:54:13 +01:00
|
|
|
|
2022-09-06 21:34:32 +02:00
|
|
|
%define sover 2
|
2015-06-10 20:42:22 +02:00
|
|
|
Name: pocl
|
2022-12-05 20:04:13 +01:00
|
|
|
Version: 3.1
|
2016-10-09 20:20:32 +02:00
|
|
|
Release: 0
|
2015-06-10 20:42:22 +02:00
|
|
|
Summary: Portable Computing Language - an OpenCL implementation
|
|
|
|
# The whole code is under MIT
|
2022-09-06 21:34:32 +02:00
|
|
|
# except include/utlist.h which is under BSD (and unbundled)
|
2017-05-18 10:29:48 +02:00
|
|
|
License: MIT
|
2017-07-12 17:14:47 +02:00
|
|
|
Group: Development/Tools/Other
|
2018-03-29 10:42:43 +02:00
|
|
|
URL: http://portablecl.org/
|
|
|
|
Source0: https://github.com/pocl/pocl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2015-10-26 22:54:13 +01:00
|
|
|
Source99: pocl-rpmlintrc
|
2019-11-04 22:32:39 +01:00
|
|
|
Patch0: link_against_libclang-cpp_so.patch
|
2017-10-26 16:49:42 +02:00
|
|
|
BuildRequires: cmake
|
2019-07-31 23:55:55 +02:00
|
|
|
BuildRequires: gcc-c++
|
2016-10-09 20:20:32 +02:00
|
|
|
BuildRequires: ninja
|
2015-10-26 22:54:13 +01:00
|
|
|
BuildRequires: opencl-headers
|
|
|
|
BuildRequires: pkgconfig
|
2022-12-05 20:04:13 +01:00
|
|
|
BuildRequires: (clang-devel >= 6.0.0 with clang-devel < 16)
|
2015-10-26 22:54:13 +01:00
|
|
|
BuildRequires: pkgconfig(OpenCL)
|
|
|
|
BuildRequires: pkgconfig(hwloc)
|
2019-07-31 23:55:55 +02:00
|
|
|
# PPC has limited support/testing from upstream
|
|
|
|
# s390(x) is also not supported, so use ExclusiveArch
|
2022-12-05 20:04:13 +01:00
|
|
|
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 riscv64
|
2015-06-10 20:42:22 +02:00
|
|
|
|
|
|
|
%description
|
2017-07-12 17:14:47 +02:00
|
|
|
Portable Computing Language (pocl) is an implementation of the OpenCL standard
|
|
|
|
which can be adapted for new targets and devices, both for homogeneous CPU and
|
|
|
|
heterogenous GPUs/accelerators.
|
2015-06-10 20:42:22 +02:00
|
|
|
|
|
|
|
pocl uses Clang as an OpenCL C frontend and LLVM for the kernel compiler
|
2017-07-12 17:14:47 +02:00
|
|
|
implementation, and as a portability layer. If your desired target has an LLVM
|
|
|
|
backend, it should be possible to get OpenCL support by using pocl.
|
2015-06-10 20:42:22 +02:00
|
|
|
|
2017-07-12 17:14:47 +02:00
|
|
|
pocl yields improved performance portability by using a kernel compiler that
|
|
|
|
can generate multi-work-item work-group functions that exploit various types of
|
|
|
|
parallel hardware resources, such as VLIW, superscalar, SIMD, SIMT, multicore
|
|
|
|
and multithread.
|
2015-06-10 20:42:22 +02:00
|
|
|
|
2022-09-06 21:34:32 +02:00
|
|
|
%package -n libpocl%{sover}
|
2018-05-15 23:09:21 +02:00
|
|
|
Summary: Shared Library part of pocl
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2022-09-06 21:34:32 +02:00
|
|
|
%description -n libpocl%{sover}
|
2018-05-15 23:09:21 +02:00
|
|
|
Portable Computing Language (pocl) is an implementation of the OpenCL standard
|
|
|
|
which can be adapted for new targets and devices, both for homogeneous CPU and
|
|
|
|
heterogenous GPUs/accelerators.
|
|
|
|
|
2019-07-31 23:55:55 +02:00
|
|
|
This subpackage contains the shared library part of pocl.
|
2018-05-15 23:09:21 +02:00
|
|
|
|
2015-06-10 20:42:22 +02:00
|
|
|
%package devel
|
2017-07-12 17:14:47 +02:00
|
|
|
Summary: Development files for the Portable Computing Language
|
2016-10-09 20:20:32 +02:00
|
|
|
Group: Development/Languages/Other
|
2022-09-06 21:34:32 +02:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: libpocl%{sover} = %{version}
|
2021-01-08 09:51:46 +01:00
|
|
|
Requires: opencl-headers >= 2.2
|
2015-06-10 20:42:22 +02:00
|
|
|
|
|
|
|
%description devel
|
2017-07-12 17:14:47 +02:00
|
|
|
Portable Computing Language (pocl) is an implementation of the OpenCL standard
|
|
|
|
which can be adapted for new targets and devices, both for homogeneous CPU and
|
|
|
|
heterogenous GPUs/accelerators.
|
2015-06-10 20:42:22 +02:00
|
|
|
|
2017-07-12 17:14:47 +02:00
|
|
|
This subpackage provides the development files needed for pocl.
|
2015-06-10 20:42:22 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2019-07-31 23:55:55 +02:00
|
|
|
%patch0 -p1
|
2015-06-10 20:42:22 +02:00
|
|
|
|
|
|
|
%build
|
2016-10-09 20:20:32 +02:00
|
|
|
%define __builder ninja
|
2017-10-26 16:49:42 +02:00
|
|
|
%cmake \
|
Accepting request 558673 from home:mnhauke:opencl:stable
- Update to version 1.0
- Remove patch:
* pocl-disable-tests.diff
- Disable CUDA backend since it depends on CUDA_TOOLKIT which is
not available in Factory
old: science/pocl
new: home:mnhauke:opencl:stable/pocl rev None
Index: pocl.changes
===================================================================
--- pocl.changes (revision 28)
+++ pocl.changes (revision 9)
@@ -1,4 +1,46 @@
-------------------------------------------------------------------
+Tue Dec 19 18:44:43 UTC 2017 - mardnh@gmx.de
+
+- Update to version 1.0
+ Highlights
+ * Improved automatic local work-group sizing on kernel enqueue, taking
+ into account standard constraints, SIMD width for vectorization as
+ well as the number of compute units available on the device.
+ * Support for NVIDIA GPUs via a new CUDA backend (currently experimental).
+ * Removed support for BBVectorizer.
+ * LLVM 5.0 is now supported.
+ * A few build options have been added for distribution builds,
+ see README.packaging.
+ * Somewhat improved scalability in the CPU driver. CPUs with many cores
+ and programs using a lot of WIs with small kernels can run somewhat faster.
+ * Full conformance with OpenCL 1.2 standard, enabled by default. There are
+ some caveats though - see the documentation.
+ * When conformance is enabled, some kernel library functions might be
+ slower than in previous releases.
+ * Pocl now reports OpenCL 1.2 instead of 2.0, except HSA enabled builds.
+ * Updated format of pocl binaries, which is NOT backwards compatible.
+ * You'll need to clean any kernel caches.
+ * Fixed several memory leaks.
+ * Unresolved symbols (missing/misspelled functions etc) in a kernel will
+ result in error in clBuildProgram() instead of pocl silently ignoring
+ them and then aborting at dlopen().
+ * New env variable POCL_MEMORY_LIMIT=N limits the Global memory size
+ reported by pocl to N gigabytes.
+ * New env variable POCL_AFFINITY (defaults to 0): if enabled, sets
+ the affinity of each CPU driver pthread to a single core.
+ * Improved AVX512 support (with LLVM 5.0). Note that even with LLVM 5.0
+ there are still a few bugs (see pocl issue #555); AVX512 + LLVM 4.0 are
+ a lot more broken, and probably not worth trying.
+ * POCL_DEBUG env var has been revamped. You can now limit debuginfo to
+ these categories (or their combination): all,error,warning,general
+ memory,llvm,events,cache,locking,refcounts,timing,hsa,tce,cuda
+ * The old setting POCL_DEBUG=1 now equals error+warning+general.
+- Remove patch:
+ * pocl-disable-tests.diff
+- Disable CUDA backend since it depends on CUDA_TOOLKIT which is
+ not available in Factory
+
+-------------------------------------------------------------------
Thu Oct 26 14:13:18 UTC 2017 - mpluskal@suse.com
- Simplify spec file a bit
Index: pocl.spec
===================================================================
--- pocl.spec (revision 28)
+++ pocl.spec (revision 9)
@@ -17,9 +17,9 @@
#
-%define sover 1.7.0
+%define sover 2.0.0
Name: pocl
-Version: 0.14
+Version: 1.0
Release: 0
Summary: Portable Computing Language - an OpenCL implementation
# The whole code is under MIT
@@ -30,7 +30,6 @@
Url: http://portablecl.org/
Source0: http://portablecl.org/downloads/%{name}-%{version}.tar.gz
Source99: pocl-rpmlintrc
-Patch0: pocl-disable-tests.diff
BuildRequires: clang
BuildRequires: clang-devel
BuildRequires: clang-devel-static
@@ -84,12 +83,11 @@
%prep
%setup -q
-%patch0 -p1
%build
%define __builder ninja
%cmake \
- -DENABLE_CUDA=1 \
+ -DENABLE_CUDA=0 \
-DENABLE_ICD=1 \
-DPOCL_INSTALL_ICD_VENDORDIR=%{_sysconfdir}/OpenCL/vendors \
-DCMAKE_C_COMPILER=clang \
@@ -124,9 +122,9 @@
%dir %{_sysconfdir}/OpenCL/vendors
%{_sysconfdir}/OpenCL/vendors/pocl.icd
%{_bindir}/poclcc
-%{_libdir}/libpocl.so.1
+%{_libdir}/libpocl.so.2
%{_libdir}/libpocl.so.%{sover}
-%{_libdir}/libpoclu.so.1
+%{_libdir}/libpoclu.so.2
%{_libdir}/libpoclu.so.%{sover}
%{_libdir}/pocl/
%{_datadir}/pocl/
Index: pocl-1.0.tar.gz
===================================================================
Binary file pocl-1.0.tar.gz (revision 9) added
Index: pocl-0.14.tar.gz
===================================================================
Binary file pocl-0.14.tar.gz (revision 28) deleted
Index: pocl-disable-tests.diff
===================================================================
--- pocl-disable-tests.diff (revision 28)
+++ pocl-disable-tests.diff (deleted)
@@ -1,19 +0,0 @@
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 18d36e7..3c20763 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -1000,10 +1000,10 @@ message(STATUS "POCLU LINK OPTS: ${POCLU_LINK_OPTIONS}")
- # poclcc bin
- add_subdirectory("bin")
-
--if (OCS_AVAILABLE)
-- add_subdirectory("tests")
-- add_subdirectory("examples")
--endif()
-+#if (OCS_AVAILABLE)
-+# add_subdirectory("tests")
-+# add_subdirectory("examples")
-+#endif()
-
- add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} ${COMMAND_USES_TERMINAL})
-
OBS-URL: https://build.opensuse.org/request/show/558673
OBS-URL: https://build.opensuse.org/package/show/science/pocl?expand=0&rev=29
2017-12-20 10:36:25 +01:00
|
|
|
-DENABLE_CUDA=0 \
|
2018-09-25 13:19:16 +02:00
|
|
|
-DENABLE_ICD=ON \
|
2020-06-26 13:13:25 +02:00
|
|
|
-DPOCL_INSTALL_ICD_VENDORDIR=%{_datadir}/OpenCL/vendors \
|
2017-10-26 16:49:42 +02:00
|
|
|
%ifarch %{ix86} x86_64
|
2018-09-25 13:19:16 +02:00
|
|
|
-DKERNELLIB_HOST_CPU_VARIANTS=distro \
|
2017-10-26 16:49:42 +02:00
|
|
|
%endif
|
2019-07-31 23:55:55 +02:00
|
|
|
%ifarch %{arm}
|
|
|
|
-DLLC_HOST_CPU=cortex-a9 \
|
|
|
|
%endif
|
|
|
|
%ifarch aarch64
|
|
|
|
-DLLC_HOST_CPU=cortex-a53 \
|
2022-06-08 22:53:15 +02:00
|
|
|
%endif
|
2022-12-24 16:18:25 +01:00
|
|
|
%ifarch riscv64
|
|
|
|
-DLLC_HOST_CPU=generic-rv64 \
|
|
|
|
%endif
|
2022-06-08 22:53:15 +02:00
|
|
|
%if 0%{?suse_version} <= 1500 && 0%{?sle_version} <= 150300
|
|
|
|
-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
|
2019-07-31 23:55:55 +02:00
|
|
|
%endif
|
2016-10-09 20:20:32 +02:00
|
|
|
-DWITH_LLVM_CONFIG=%{_bindir}/llvm-config
|
2019-07-31 23:55:55 +02:00
|
|
|
|
2022-09-06 21:34:32 +02:00
|
|
|
%cmake_build
|
2015-06-10 20:42:22 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
2022-09-06 21:34:32 +02:00
|
|
|
%post -n libpocl%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libpocl%{sover} -p /sbin/ldconfig
|
2015-06-10 20:42:22 +02:00
|
|
|
|
|
|
|
%files
|
2022-12-05 20:04:13 +01:00
|
|
|
%doc CHANGES README.* doc/sphinx/source/*.rst
|
2018-09-25 13:19:16 +02:00
|
|
|
%license LICENSE
|
2020-06-26 13:13:25 +02:00
|
|
|
%dir %{_datadir}/OpenCL/
|
|
|
|
%dir %{_datadir}/OpenCL/vendors
|
|
|
|
%{_datadir}/OpenCL/vendors/pocl.icd
|
2017-05-18 10:29:48 +02:00
|
|
|
%{_bindir}/poclcc
|
2018-05-15 23:09:21 +02:00
|
|
|
%dir %{_libdir}/pocl/
|
2021-01-08 09:51:46 +01:00
|
|
|
%{_libdir}/pocl/libpocl-devices-basic.so
|
|
|
|
%{_libdir}/pocl/libpocl-devices-pthread.so
|
2018-03-29 10:42:43 +02:00
|
|
|
%{_datadir}/pocl/
|
2018-05-15 23:09:21 +02:00
|
|
|
|
2022-09-06 21:34:32 +02:00
|
|
|
%files -n libpocl%{sover}
|
|
|
|
%{_libdir}/libpocl.so.%{sover}*
|
2015-06-10 20:42:22 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/libpocl.so
|
|
|
|
%{_libdir}/pkgconfig/pocl.pc
|
|
|
|
|
|
|
|
%changelog
|