1 |
commit: 4c3631af3ad1499c55ddea5c3b2f257e8f476366 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 23 06:42:26 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 23 06:42:26 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4c3631af |
7 |
|
8 |
dev-libs/pocl: treeclean (moved to ::gentoo) |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-libs/pocl/Manifest | 1 - |
13 |
.../pocl/files/vendor_opencl_libs_location.patch | 20 ----- |
14 |
dev-libs/pocl/metadata.xml | 30 ------- |
15 |
dev-libs/pocl/pocl-1.7.ebuild | 95 ---------------------- |
16 |
4 files changed, 146 deletions(-) |
17 |
|
18 |
diff --git a/dev-libs/pocl/Manifest b/dev-libs/pocl/Manifest |
19 |
deleted file mode 100644 |
20 |
index 4ac613d41..000000000 |
21 |
--- a/dev-libs/pocl/Manifest |
22 |
+++ /dev/null |
23 |
@@ -1 +0,0 @@ |
24 |
-DIST pocl-1.7.tar.gz 1577676 BLAKE2B 50d4f50236b1c81f319b5559ca2b1df529209f07899acf51c487820d97cc6766c5130a55afca910517c7db63d8041ac8306062880c3a821cbc1bf9108bf13d65 SHA512 23bb82b25a222186c001b2ed413f26253e1e0e16518e98c95173f51491e15d107e6ab1b334ffd490b41199743267d9ad64882a22fea327e17ec9604f9847fc38 |
25 |
|
26 |
diff --git a/dev-libs/pocl/files/vendor_opencl_libs_location.patch b/dev-libs/pocl/files/vendor_opencl_libs_location.patch |
27 |
deleted file mode 100644 |
28 |
index 548589ca4..000000000 |
29 |
--- a/dev-libs/pocl/files/vendor_opencl_libs_location.patch |
30 |
+++ /dev/null |
31 |
@@ -1,20 +0,0 @@ |
32 |
---- a/CMakeLists.txt |
33 |
-+++ b/CMakeLists.txt |
34 |
-@@ -125,7 +125,7 @@ |
35 |
- endif() |
36 |
- |
37 |
- # for libpocl.so |
38 |
--set(POCL_INSTALL_PUBLIC_LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" CACHE PATH "POCL public libdir") |
39 |
-+set(POCL_INSTALL_PUBLIC_LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/OpenCL/vendors/pocl" CACHE PATH "POCL public libdir") |
40 |
- |
41 |
- # for llvmopencl.so |
42 |
- set(POCL_INSTALL_PRIVATE_LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pocl" CACHE PATH "POCL private libdir") |
43 |
-@@ -134,7 +134,7 @@ |
44 |
- if(UNIX AND NOT CMAKE_CROSSCOMPILING AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) |
45 |
- set(POCL_INSTALL_ICD_VENDORDIR "/etc/OpenCL/vendors" CACHE PATH "POCL ICD file destination") |
46 |
- else() |
47 |
-- set(POCL_INSTALL_ICD_VENDORDIR "${CMAKE_INSTALL_PREFIX}/etc/OpenCL/vendors" CACHE PATH "POCL ICD file destination") |
48 |
-+ set(POCL_INSTALL_ICD_VENDORDIR "${SYSCONFDIR}/etc/OpenCL/vendors" CACHE PATH "POCL ICD file destination") |
49 |
- endif() |
50 |
- |
51 |
- # for kernel-<target>.bc |
52 |
|
53 |
diff --git a/dev-libs/pocl/metadata.xml b/dev-libs/pocl/metadata.xml |
54 |
deleted file mode 100644 |
55 |
index 8ae6143c7..000000000 |
56 |
--- a/dev-libs/pocl/metadata.xml |
57 |
+++ /dev/null |
58 |
@@ -1,30 +0,0 @@ |
59 |
-<?xml version="1.0" encoding="UTF-8"?> |
60 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
61 |
-<pkgmetadata> |
62 |
- <maintainer type="person"> |
63 |
- <description>co-maintainers welcome</description> |
64 |
- <email>lssndrbarbieri@×××××.com</email> |
65 |
- <name>Alessandro Barbieri</name> |
66 |
- </maintainer> |
67 |
- <longdescription lang="en"> |
68 |
-PoCL is a portable open source (MIT-licensed) implementation of the OpenCL standard (1.2 with some 2.0 features supported). In addition to being an easily portable multi-device (truely heterogeneous) open-source OpenCL implementation, a major goal of this project is improving interoperability of diversity of OpenCL-capable devices by integrating them to a single centrally orchestrated platform. Also one of the key goals longer term is to enhance performance portability of OpenCL programs across device types utilizing runtime and compiler techniques. |
69 |
- |
70 |
-Upstream PoCL currently supports various CPUs, NVIDIA GPUs via libcuda, HSA-supported GPUs and TCE ASIPs (experimental, see: OpenASIP). It is also known to have multiple (private) adaptations in active production use. |
71 |
- |
72 |
-PoCL uses Clang as an OpenCL C frontend and LLVM for kernel compiler implementation, and as a portability layer. Thus, if your desired target has an LLVM backend, it should be able to get OpenCL support easily by using PoCL. |
73 |
- </longdescription> |
74 |
- <upstream> |
75 |
- <remote-id type="github">pocl/pocl</remote-id> |
76 |
- </upstream> |
77 |
- <use> |
78 |
- <flag name="accel">Enable the generic hardware accelerator device driver</flag> |
79 |
- <flag name="cl20">Enable reporting OpenCL 2.0 for the CPU device</flag> |
80 |
- <flag name="conformance">Ensures that certain build options which would result in non-conformant pocl build stay disabled. Note that this does not quarantee a fully conformant build of pocl by itself</flag> |
81 |
- <flag name="cuda">Enable the CUDA backend for NVIDIA GPUs</flag> |
82 |
- <flag name="float-conversion">When enabled, OpenCL printf() call's f/e/g formatters are handled by pocl. When disabled, these are handled by system C library.</flag> |
83 |
- <flag name="hardening">Enable hardening against various attacks. May worsen performance</flag> |
84 |
- <!--<flag name="hsa">Enable the HSA base profile runtime device driver</flag>--> |
85 |
- <flag name="hwloc">Enable hwloc support</flag> |
86 |
- <flag name="memmanager">Enables custom memory manager. Except for special circumstances, this should be disabled</flag> |
87 |
- </use> |
88 |
-</pkgmetadata> |
89 |
|
90 |
diff --git a/dev-libs/pocl/pocl-1.7.ebuild b/dev-libs/pocl/pocl-1.7.ebuild |
91 |
deleted file mode 100644 |
92 |
index 5da955b15..000000000 |
93 |
--- a/dev-libs/pocl/pocl-1.7.ebuild |
94 |
+++ /dev/null |
95 |
@@ -1,95 +0,0 @@ |
96 |
-# Copyright 1999-2021 Gentoo Authors |
97 |
-# Distributed under the terms of the GNU General Public License v2 |
98 |
- |
99 |
-EAPI="7" |
100 |
- |
101 |
-DOCS_AUTODOC=0 |
102 |
-DOCS_BUILDER="sphinx" |
103 |
-DOCS_DIR="doc/sphinx/source" |
104 |
-PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
105 |
- |
106 |
-inherit cmake llvm python-any-r1 docs |
107 |
- |
108 |
-LLVM_MAX_SLOT=12 |
109 |
- |
110 |
-DESCRIPTION="Portable Computing Language (an implementation of OpenCL)" |
111 |
-HOMEPAGE=" |
112 |
- http://portablecl.org |
113 |
- https://github.com/pocl/pocl |
114 |
-" |
115 |
-SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
116 |
- |
117 |
-LICENSE="GPL-2" |
118 |
-SLOT="0" |
119 |
-KEYWORDS="~amd64" |
120 |
-IUSE="accel cl20 +conformance cuda debug examples float-conversion hardening +hwloc memmanager test" #hsa tce |
121 |
- |
122 |
-RESTRICT="!test? ( test )" |
123 |
- |
124 |
-#TODO: add dependencies for cuda |
125 |
-RDEPEND=" |
126 |
- dev-libs/libltdl |
127 |
- sys-devel/llvm:${LLVM_MAX_SLOT} |
128 |
- virtual/opencl |
129 |
- |
130 |
- !cuda? ( sys-devel/clang:${LLVM_MAX_SLOT} ) |
131 |
- cuda? ( sys-devel/clang:${LLVM_MAX_SLOT}[llvm_targets_NVPTX] ) |
132 |
- debug? ( dev-util/lttng-ust ) |
133 |
- hwloc? ( sys-apps/hwloc[cuda?] ) |
134 |
-" |
135 |
-DEPEND=" |
136 |
- ${RDEPEND} |
137 |
- doc? ( $(python_gen_any_dep '<dev-python/markupsafe-2.0[${PYTHON_USEDEP}]') ) |
138 |
-" |
139 |
-BDEPEND="virtual/pkgconfig" |
140 |
- |
141 |
-PATCHES=( "${FILESDIR}/vendor_opencl_libs_location.patch" ) |
142 |
- |
143 |
-src_configure() { |
144 |
- llvm_pkg_setup |
145 |
- local mycmakeargs=( |
146 |
- -DBUILD_SHARED_LIBS=ON |
147 |
- -DENABLE_HSA=OFF |
148 |
- -DENABLE_ICD=ON |
149 |
- -DENABLE_POCL_BUILDING=ON |
150 |
- -DKERNELLIB_HOST_CPU_VARIANTS=native |
151 |
- -DPOCL_ICD_ABSOLUTE_PATH=ON |
152 |
- -DSTATIC_LLVM=OFF |
153 |
- |
154 |
- -DENABLE_ACCEL_DEVICE=$(usex accel) |
155 |
- -DENABLE_CONFORMANCE=$(usex conformance) |
156 |
- -DENABLE_CUDA=$(usex cuda) |
157 |
- -DENABLE_HOST_CPU_DEVICE_CL20=$(usex cl20) |
158 |
- -DENABLE_HWLOC=$(usex hwloc) |
159 |
- -DENABLE_POCL_FLOAT_CONVERSION=$(usex float-conversion) |
160 |
- -DHARDENING_ENABLE=$(usex hardening) |
161 |
- -DPOCL_DEBUG_MESSAGES=$(usex debug) |
162 |
- -DUSE_POCL_MEMMANAGER=$(usex memmanager) |
163 |
- -DWITH_LLVM_CONFIG=$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config |
164 |
- ) |
165 |
- cmake_src_configure |
166 |
-} |
167 |
- |
168 |
-src_compile() { |
169 |
- cmake_src_compile |
170 |
- docs_compile |
171 |
-} |
172 |
- |
173 |
-src_install() { |
174 |
- cmake_src_install |
175 |
- dodoc CREDITS README CHANGES |
176 |
- if use doc; then |
177 |
- dodoc -r _build/html |
178 |
- docompress -x "/usr/share/doc/${P}/html" |
179 |
- fi |
180 |
- if use examples; then |
181 |
- dodoc -r examples |
182 |
- docompress -x "/usr/share/doc/${P}/examples" |
183 |
- fi |
184 |
-} |
185 |
- |
186 |
-src_test() { |
187 |
- export POCL_BUILDING=1 |
188 |
- export CTEST_OUTPUT_ON_FAILURE=1 |
189 |
- cmake_src_test |
190 |
-} |