両方とも前のリビジョン 前のリビジョン 次のリビジョン 前のリビジョン python:pyopencl [2020/08/19 07:12] – ともやん python:pyopencl [2024/04/23 13:48] (現在) – [fatal error: CL/cl.h: No such file or directory が発生する...😢] ともやん
<html> ~~CLOSETOC~~
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<style>
#result pre, #mincode pre {
overflow: hidden;
font-size: 10px;
}
#result_long pre, #mincode_long pre {
height: 250px;
overflow: scroll;
overflow-x: hidden;
font-size: 10px;
}
#mintbl table {
font-size: 12px;
}
#mintbl td pre {
margin: 0;
}
#img_long {
height: 400px;
overflow: scroll;
overflow-x: hidden;
}
.dokuwiki .plugin_wrap table {
width: auto;
}
#logo {
background-color: white;
padding: 10px;
width: fit-content;
}
#logo p {
margin: 0;
}
</style>
</html>
====== PyOpenCL のインストール ====== ====== PyOpenCL のインストール ======
ここでは、以下の CPU および GPU を使用してベンチマークを行った。\\ ここでは、以下の CPU および GPU を使用してベンチマークを行った。\\
<html> <html>
<div id ="chart_div " style ="width: 640px; height: 400px; overflow-x: scroll; ">< /div> <iframe width ="640 " height ="400 " src="/ /jsfiddle .net/tomoyan596/o57z9trf/embedded/result ,js ,html ,css ,resources/dark/" allowfullscreen="allowfullscreen" allowpaymentrequest frameborder=" 0" ></iframe >
<script>
google .charts.load('current' , {
packages: ['corechart' , 'bar']
});
google.charts.setOnLoadCallback(drawMultSeries);
function drawMultSeries() {
let data = google.visualization.arrayToDataTable([
['モデル' , '実行時間'] ,
['AMD® GPU Radeon\nHD 5870',
{v: 0.0000072220, f: 0.0000072220}],
['Intel® GPU HD Graphics 4000',
{v: 0.0007947200, f: 0.0007947200}],
['NVIDIA® Tesla® T4\n(Google Colab)',
{v: 0.0010557440, f: 0.0010557440}],
['AMD® CPU Phenom™ II X6 1100T Processor',
{v: 0.0010633330, f: 0.0010633330}],
['Intel® CPU Core™ i7-3517U CPU @ 1.90GHz',
{v: 0.0011095000, f: 0.0011095000}],
['NVIDIA® GPU GeForce GT 640M',
{v: 0.0015742400, f: 0.0015742400}]
]);
let options = {
title: 'OpenCL ベンチマーク - benchmark-all.py 実行時間(秒)',
chartArea: {
width: '50%',
},
width: 600,
height: 400,
is3D: true,
hAxis: {
title: '<- fast | slow - >',
minValue: 0,
scaleType: 'log'
},
vAxis: {
title: 'モデル'
},
explorer: {
actions: ['dragToZoom', 'rightClickToReset'],
axis: 'horizontal',
keepInBounds: true,
maxZoomIn: 4.0
}
};
let chart = new google.visualization.BarChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script >
</html> </html>
本家: [[https://documen.tician.de/pyopencl/|Home - pyopencl 2021.2.6 documentation]]\\
OpenCL本家: [[https://www.khronos.org/opencl/|OpenCL - The Open Standard for Parallel Programming of Heterogeneous Systems]]\\
===== OpenCL 開発環境 =====
OpenCL を利用するには OS プラットフォームに関係なく、[[c_cpp:opencl_sdk|OpenCL 開発環境構築]] が必要である。\\
===== Windows ===== ===== Windows =====
PyOpenCL をインストールするには、[[windows:visualstudio|Microsoft Visual Studio]]、および、[[c_cpp:opencl_sdk|OpenCL 開発環境構築]] が必要である。\\ PyOpenCL をインストールするには、[[windows:visualstudio|Microsoft Visual Studio]]、および、[[c_cpp:opencl_sdk|OpenCL 開発環境構築]] が必要である。\\
\\
PyOpenCL 仮想環境の作成を行う。(任意) \\
<WRAP prewrap 100% #result>
<code>
$ python -m venv py38opencl
$ . py38opencl\Scripts\activate
(py38opencl) $ python -m pip install --upgrade pip
Collecting pip
Downloading pip-20.2.3-py2.py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 656 kB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.1.1
Uninstalling pip-20.1.1:
Successfully uninstalled pip-20.1.1
Successfully installed pip-20.2.3
</code>
</WRAP>
pybind11、Mako をインストールする。\\ pybind11、Mako をインストールする。\\
<WRAP prewrap 100% #result> <WRAP prewrap 100% #result>
<code> <code>
> pip install pybind11 Mako > pip install pybind11 mako
Collecting pybind11 Collecting pybind11
Downloading https://files.pythonhosted.org/packages/5d/85/c7a8dffda52ce25a8bcfe9a28b6861bdd52da59ae001fdd4173e054b7d9b/ pybind11-2.3 .0-py2.py3-none-any.whl (147kB ) Downloading pybind11-2.5 .0-py2.py3-none-any.whl (296 kB )
|████████████████████████████████| 153kB 1.3MB /s |████████████████████████████████| 296 kB 652 kB /s
Collecting Mako Collecting mako
Downloading https://files.pythonhosted.org/packages/1b/a5/023aba3d69aacef6bfc13797bdc3dd03c6fb4ae2dcd2fde7dffc37233924/ Mako-1.0 .14 .tar .gz (462kB ) Downloading Mako-1.1 .3-py2 .py3-none-any .whl (75 kB )
|████████████████████████████████| 471kB 3.3MB /s |████████████████████████████████| 75 kB 414 kB /s
Collecting MarkupSafe>=0.9.2 (from Mako) Collecting MarkupSafe>=0.9.2
Downloading https://files.pythonhosted.org/packages/65/c6/2399700d236d1dd681af8aebff1725558cddfd6e43d7a5184a675f4711f5/ MarkupSafe-1.1.1-cp37 -cp37m -win_amd64.whl Downloading MarkupSafe-1.1.1-cp38 -cp38 -win_amd64.whl (16 kB)
Installing collected packages: pybind11, MarkupSafe, Mako Installing collected packages: pybind11, MarkupSafe, mako
Running setup.py install for Mako ... done Successfully installed MarkupSafe -1.1 .1 mako -1.1.3 pybind11-2.5 .0
Successfully installed Mako -1.0 .14 MarkupSafe -1.1.1 pybind11-2.3 .0
</code> </code>
</WRAP> </WRAP>
PyOpenCL をインストールする。\\ PyOpenCL をインストールする。\\
<code> <code>
<code> <code>
Collecting pyopencl Collecting pyopencl
Downloading https://files.pythonhosted.org/packages/1b/0e/f49c0507610aae0bc2aba6ad1e79f87992d9e74e6ea55af23e436075502e/ pyopencl-2019 .1 .tar.gz (341kB ) Downloading pyopencl-2020 .2.2 .tar.gz (352 kB )
|████████████████████████████████| 348kB 384kB /s |████████████████████████████████| 352 kB 544 kB /s
Collecting numpy (from pyopencl) Collecting numpy
Downloading https://files.pythonhosted.org/packages/26/26/73ba03b2206371cdef62afebb877e9ba90a1f0dc3d9de22680a3970f5a50/ numpy-1.17 .0 -cp37 -cp37m -win_amd64.whl (12 .8MB ) Using cached numpy-1.19 .2 -cp38 -cp38 -win_amd64.whl (13 .0 MB )
|████████████████████████████████| 12.8MB 656kB/s Collecting pytools>=2017.6
Collecting pytools>=2017.6 (from pyopencl) Downloading pytools-2020 .4 .tar.gz (67 kB )
Downloading https://files.pythonhosted.org/packages/00/96/00416762a3eda8876a17d007df4a946f46b2e4ee1057e0b9714926472ef8/ pytools-2019 .1.1 .tar.gz (58kB ) |████████████████████████████████| 67 kB 828 kB /s
|████████████████████████████████| 61kB 2.0MB /s Collecting decorator>=3.2.0
Collecting decorator>=3.2.0 (from pyopencl) Downloading decorator-4.4.2 -py2.py3-none-any.whl (9.2 kB)
Downloading https://files.pythonhosted.org/packages/5f/88/0075e461560a1e750a0dcbf77f1d9de775028c37a19a346a6c565a257399/ decorator-4.4.0 -py2.py3-none-any.whl Collecting appdirs>=1.4.0
Collecting appdirs>=1.4.0 (from pyopencl) Downloading appdirs-1.4.4 -py2.py3-none-any.whl (9.6 kB)
Downloading https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/ appdirs-1.4.3 -py2.py3-none-any.whl Collecting six>=1.8 .0
Collecting six>=1.9 .0 (from pyopencl) Downloading six-1.15 .0-py2.py3-none-any.whl (10 kB)
Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/ six-1.12 .0-py2.py3-none-any.whl Using legacy 'setup.py install' for pyopencl, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pytools, since package 'wheel' is not installed.
Installing collected packages: numpy, decorator, appdirs, six, pytools, pyopencl Installing collected packages: numpy, decorator, appdirs, six, pytools, pyopencl
Running setup.py install for pytools ... done Running setup.py install for pytools ... done
Running setup.py install for pyopencl ... done Running setup.py install for pyopencl ... done
Successfully installed appdirs-1.4.3 decorator-4.4.0 numpy-1.17 .0 pyopencl-2019 .1 pytools-2019 .1.1 six-1.12 .0 Successfully installed appdirs-1.4.4 decorator-4.4.2 numpy-1.19 .2 pyopencl-2020 .2.2 pytools-2020 .4 six-1.15 .0
</code> </code>
</WRAP> </WRAP>
===== トラブルシューティング ===== ===== トラブルシューティング =====
==== fatal error: CL/cl.h: No such file or directory が発生する...😢 ====
DietPi で pyopencl をインストールすると CL/cl.h がないと言われる...🤔\\
<WRAP color_term>
<WRAP color_command><html><pre>
<font color="#AFFF00"><b>$</b></font> <font color="#26A269">pipx</font> runpip jupyterlab4 install <font color="#A347BA">-v</font> pyopencl
</pre></html></WRAP>
<WRAP color_result_hlong><html><pre>
Using pip 24.0 from /home/dietpi/.local/pipx/shared/lib/python3.11/site-packages/pip (python 3.11)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple/
Collecting pyopencl
Downloading pyopencl-2024.1.tar.gz (473 kB)
<font color="#5FAF00">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</font> <font color="#26A269">473.9/473.9 kB</font> <font color="#C01C28">380.3 kB/s</font> eta <font color="#2AA1B3">0:00:00</font>
Running command pip subprocess to install build dependencies
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple/, https://www.piwheels.org/simple/
Ignoring numpy: markers 'python_version >= "3.9" and platform_python_implementation == "PyPy"' don't match your environment
Collecting setuptools>=42.0.0
Downloading https://www.piwheels.org/simple/setuptools/setuptools-69.5.1-py3-none-any.whl (894 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 894.6/894.6 kB 331.6 kB/s eta 0:00:00
Collecting wheel>=0.34.2
Downloading https://www.piwheels.org/simple/wheel/wheel-0.43.0-py3-none-any.whl (65 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.8/65.8 kB 236.9 kB/s eta 0:00:00
Collecting oldest-supported-numpy
Downloading https://www.piwheels.org/simple/oldest-supported-numpy/oldest_supported_numpy-2023.12.21-py3-none-any.whl (4.9 kB)
Collecting pybind11>=2.5.0
Downloading https://www.piwheels.org/simple/pybind11/pybind11-2.12.0-py3-none-any.whl (234 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 235.0/235.0 kB 95.3 kB/s eta 0:00:00
Collecting numpy==1.23.2 (from oldest-supported-numpy)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))': /simple/numpy/numpy-1.23.2-cp311-cp311-linux_armv6l.whl
Downloading https://www.piwheels.org/simple/numpy/numpy-1.23.2-cp311-cp311-linux_armv6l.whl (12.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.4/12.4 MB 289.6 kB/s eta 0:00:00
Installing collected packages: wheel, setuptools, pybind11, numpy, oldest-supported-numpy
Successfully installed numpy-1.23.2 oldest-supported-numpy-2023.12.21 pybind11-2.12.0 setuptools-69.5.1 wheel-0.43.0
Installing build dependencies ... done
Running command Getting requirements to build wheel
running egg_info
writing pyopencl.egg-info/PKG-INFO
writing dependency_links to pyopencl.egg-info/dependency_links.txt
writing requirements to pyopencl.egg-info/requires.txt
writing top-level names to pyopencl.egg-info/top_level.txt
reading manifest file 'pyopencl.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'experiments/*.py'
warning: no previously-included files matching '*' found under directory '_skbuild'
adding license file 'LICENSE'
writing manifest file 'pyopencl.egg-info/SOURCES.txt'
Getting requirements to build wheel ... done
Running command Preparing metadata (pyproject.toml)
running dist_info
creating /var/tmp/pip-modern-metadata-pmpmdxy1/pyopencl.egg-info
writing /var/tmp/pip-modern-metadata-pmpmdxy1/pyopencl.egg-info/PKG-INFO
writing dependency_links to /var/tmp/pip-modern-metadata-pmpmdxy1/pyopencl.egg-info/dependency_links.txt
writing requirements to /var/tmp/pip-modern-metadata-pmpmdxy1/pyopencl.egg-info/requires.txt
writing top-level names to /var/tmp/pip-modern-metadata-pmpmdxy1/pyopencl.egg-info/top_level.txt
writing manifest file '/var/tmp/pip-modern-metadata-pmpmdxy1/pyopencl.egg-info/SOURCES.txt'
reading manifest file '/var/tmp/pip-modern-metadata-pmpmdxy1/pyopencl.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'experiments/*.py'
warning: no previously-included files matching '*' found under directory '_skbuild'
adding license file 'LICENSE'
writing manifest file '/var/tmp/pip-modern-metadata-pmpmdxy1/pyopencl.egg-info/SOURCES.txt'
creating '/var/tmp/pip-modern-metadata-pmpmdxy1/pyopencl-2024.1.dist-info'
Preparing metadata (pyproject.toml) ... done
Link requires a different Python (3.11.2 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/3a/be/650f9c091ef71cb01d735775d554e068752d3ff63d7943b26316dc401749/numpy-1.21.2.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
Link requires a different Python (3.11.2 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/5f/d6/ad58ded26556eaeaa8c971e08b6466f17c4ac4d786cd3d800e26ce59cc01/numpy-1.21.3.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
Link requires a different Python (3.11.2 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/fb/48/b0708ebd7718a8933f0d3937513ef8ef2f4f04529f1f66ca86d873043921/numpy-1.21.4.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
Link requires a different Python (3.11.2 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/c2/a8/a924a09492bdfee8c2ec3094d0a13f2799800b4fdc9c890738aeeb12c72e/numpy-1.21.5.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
Link requires a different Python (3.11.2 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/45/b7/de7b8e67f2232c26af57c205aaad29fe17754f793404f59c8a730c7a191a/numpy-1.21.6.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
Collecting numpy (from pyopencl)
Downloading https://www.piwheels.org/simple/numpy/numpy-1.26.4-cp311-cp311-linux_armv6l.whl (5.6 MB)
<font color="#5FAF00">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</font> <font color="#26A269">5.6/5.6 MB</font> <font color="#C01C28">312.2 kB/s</font> eta <font color="#2AA1B3">0:00:00</font>
Collecting pytools>=2021.2.7 (from pyopencl)
Downloading https://www.piwheels.org/simple/pytools/pytools-2024.1.1-py2.py3-none-any.whl (85 kB)
<font color="#5FAF00">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</font> <font color="#26A269">85.1/85.1 kB</font> <font color="#C01C28">216.0 kB/s</font> eta <font color="#2AA1B3">0:00:00</font>
Requirement already satisfied: platformdirs>=2.2.0 in ./.local/pipx/venvs/jupyterlab4/lib/python3.11/site-packages (from pyopencl) (4.2.0)
Building wheels for collected packages: pyopencl
Running command Building wheel for pyopencl (pyproject.toml)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv6l-cpython-311
creating build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/bitonic_sort_templates.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/elementwise.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/array.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/bitonic_sort.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/clmath.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/tools.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/cltypes.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/cache.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/_mymako.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/version.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/__init__.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/clrandom.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/reduction.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/invoker.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/algorithm.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/ipython_ext.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/_cluda.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/scan.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/capture_call.py -> build/lib.linux-armv6l-cpython-311/pyopencl
creating build/lib.linux-armv6l-cpython-311/pyopencl/characterize
copying pyopencl/characterize/__init__.py -> build/lib.linux-armv6l-cpython-311/pyopencl/characterize
copying pyopencl/characterize/performance.py -> build/lib.linux-armv6l-cpython-311/pyopencl/characterize
creating build/lib.linux-armv6l-cpython-311/pyopencl/compyte
copying pyopencl/compyte/array.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte
copying pyopencl/compyte/dtypes.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte
copying pyopencl/compyte/__init__.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte
creating build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray
copying pyopencl/compyte/ndarray/gen_elemwise.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray
copying pyopencl/compyte/ndarray/test_gpu_ndarray.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray
copying pyopencl/compyte/ndarray/setup_opencl.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray
copying pyopencl/compyte/ndarray/__init__.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray
copying pyopencl/compyte/ndarray/gen_reduction.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray
copying pyopencl/compyte/ndarray/test_gpu_elemwise.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray
running egg_info
writing pyopencl.egg-info/PKG-INFO
writing dependency_links to pyopencl.egg-info/dependency_links.txt
writing requirements to pyopencl.egg-info/requires.txt
writing top-level names to pyopencl.egg-info/top_level.txt
reading manifest file 'pyopencl.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'experiments/*.py'
warning: no previously-included files matching '*' found under directory '_skbuild'
adding license file 'LICENSE'
writing manifest file 'pyopencl.egg-info/SOURCES.txt'
/var/tmp/pip-build-env-ry89326d/overlay/lib/python3.11/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'pyopencl.cl' is absent from the `packages` configuration.
!!
********************************************************************************
############################
# Package would be ignored #
############################
Python recognizes 'pyopencl.cl' as an importable package[^1],
but it is absent from setuptools' `packages` configuration.
This leads to an ambiguous overall configuration. If you want to distribute this
package, please make sure that 'pyopencl.cl' is explicitly added
to the `packages` configuration field.
Alternatively, you can also rely on setuptools' discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
If you don't want 'pyopencl.cl' to be distributed and are
already explicitly excluding 'pyopencl.cl' via
`find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
you can try to use `exclude_package_data`, or `include-package-data=False` in
combination with a more fine grained `package-data` configuration.
You can read more about "package data files" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[^1]: For Python, any directory (with suitable naming) can be imported,
even if it does not contain any `.py` files.
On the other hand, currently there is no concept of package data
directory, all directories are treated like packages.
********************************************************************************
!!
check.warn(importable)
creating build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-airy.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-bessel-j-complex.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-bessel-j.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-bessel-y.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-complex.h -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-eval-tbl.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-hankel-complex.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-ranluxcl.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
creating build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-random123
copying pyopencl/cl/pyopencl-random123/array.h -> build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-random123
copying pyopencl/cl/pyopencl-random123/openclfeatures.h -> build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-random123
copying pyopencl/cl/pyopencl-random123/philox.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-random123
copying pyopencl/cl/pyopencl-random123/threefry.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-random123
running build_ext
creating var
creating var/tmp
arm-linux-gnueabihf-gcc -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -I/home/dietpi/.local/pipx/venvs/jupyterlab4/include -I/usr/include/python3.11 -c /var/tmp/tmpibr5rk4l.cpp -o var/tmp/tmpibr5rk4l.o -std=gnu++14
arm-linux-gnueabihf-gcc -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -I/home/dietpi/.local/pipx/venvs/jupyterlab4/include -I/usr/include/python3.11 -c /var/tmp/tmpt_mf4j7t.cpp -o var/tmp/tmpt_mf4j7t.o -fvisibility=hidden
building 'pyopencl._cl' extension
creating build/temp.linux-armv6l-cpython-311
creating build/temp.linux-armv6l-cpython-311/src
arm-linux-gnueabihf-gcc -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -DPYGPU_PACKAGE=pyopencl -DPYGPU_PYOPENCL=1 -Ipybind11/include -I/var/tmp/pip-build-env-ry89326d/overlay/lib/python3.11/site-packages/pybind11/include -I/var/tmp/pip-build-env-ry89326d/overlay/lib/python3.11/site-packages/numpy/core/include -I/home/dietpi/.local/pipx/venvs/jupyterlab4/include -I/usr/include/python3.11 -c -std=gnu++14 src/bitlog.cpp -o build/temp.linux-armv6l-cpython-311/src/bitlog.o -fvisibility=hidden -DVERSION_INFO=\"2024.1\" -fvisibility=hidden
</pre></html></WRAP>
<WRAP color_result><html><pre>
arm-linux-gnueabihf-gcc -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -DPYGPU_PACKAGE=pyopencl -DPYGPU_PYOPENCL=1 -Ipybind11/include -I/var/tmp/pip-build-env-ry89326d/overlay/lib/python3.11/site-packages/pybind11/include -I/var/tmp/pip-build-env-ry89326d/overlay/lib/python3.11/site-packages/numpy/core/include -I/home/dietpi/.local/pipx/venvs/jupyterlab4/include -I/usr/include/python3.11 -c -std=gnu++14 src/wrap_cl.cpp -o build/temp.linux-armv6l-cpython-311/src/wrap_cl.o -fvisibility=hidden -DVERSION_INFO=\"2024.1\" -fvisibility=hidden
In file included from src/wrap_cl.cpp:29:
src/wrap_cl.hpp:70:10: fatal error: CL/cl.h: No such file or directory
70 | #include <CL/cl.h>
| ^~~~~~~~~
compilation terminated.
error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
<font color="#C01C28"><b>error</b></font>: <b>subprocess-exited-with-error</b>
<font color="#C01C28">×</font> <font color="#26A269">Building wheel for pyopencl </font><font color="#26A269"><b>(</b></font><font color="#26A269">pyproject.toml</font><font color="#26A269"><b>)</b></font> did not run successfully.
<font color="#C01C28">│</font> exit code: <font color="#2AA1B3"><b>1</b></font>
<font color="#C01C28">╰─></font> See above for output.
<font color="#A347BA"><b>note</b></font>: This error originates from a subprocess, and is likely not a problem with pip.
<font color="#A347BA"><b>full command</b></font>: <font color="#12488B">/home/dietpi/.local/pipx/venvs/jupyterlab4/bin/python /home/dietpi/.local/pipx/shared/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /var/tmp/tmpju1zw3xq</font>
<font color="#A347BA"><b>cwd</b></font>: /var/tmp/pip-install-ktrib8gc/pyopencl_d2eaf0ec32a6412abe8e66d854596fad
Building wheel for pyopencl (pyproject.toml) ... error
<font color="#C01C28"> ERROR: Failed building wheel for pyopencl</font>
Failed to build pyopencl
<font color="#C01C28">ERROR: Could not build wheels for pyopencl, which is required to install pyproject.toml-based projects</font>
'/home/dietpi/.local/pipx/venvs/jupyterlab4/bin/python -m pip install -v pyopencl' failed
</pre></html></WRAP>
</WRAP>
不足している opencl-headers をインストールする...🤔\\
<WRAP color_term>
<WRAP color_command><html><pre>
<font color="#AFFF00"><b>$</b></font> <font color="#26A269">sudo</font> <font color="#26A269">apt</font> install opencl-headers
</pre></html></WRAP>
<WRAP color_result_hlong><html><pre>
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
opencl-c-headers opencl-clhpp-headers
Suggested packages:
opencl-clhpp-headers-doc
The following NEW packages will be installed:
opencl-c-headers opencl-clhpp-headers opencl-headers
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 90.9 kB of archives.
After this operation, 742 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf opencl-c-headers all 3.0~2023.02.06-1 [43.6 kB]
Get:2 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf opencl-clhpp-headers all 3.0~2023.02.06-1 [44.4 kB]
Get:3 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf opencl-headers all 3.0~2023.02.06-1 [2,984 B]
Fetched 90.9 kB in 3s (28.1 kB/s)<font color="#A2734C"> </font>
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package opencl-c-headers.
(Reading database ... 141224 files and directories currently installed.)
Preparing to unpack .../opencl-c-headers_3.0~2023.02.06-1_all.deb ...
Unpacking opencl-c-headers (3.0~2023.02.06-1) ...
Selecting previously unselected package opencl-clhpp-headers.
Preparing to unpack .../opencl-clhpp-headers_3.0~2023.02.06-1_all.deb ...
Unpacking opencl-clhpp-headers (3.0~2023.02.06-1) ...
Selecting previously unselected package opencl-headers.
Preparing to unpack .../opencl-headers_3.0~2023.02.06-1_all.deb ...
Unpacking opencl-headers (3.0~2023.02.06-1) ...
Setting up opencl-c-headers (3.0~2023.02.06-1) ...
Setting up opencl-clhpp-headers (3.0~2023.02.06-1) ...
Setting up opencl-headers (3.0~2023.02.06-1) ...
</pre></html></WRAP>
</WRAP>
/usr/bin/ld: cannot find -lOpenCL: No such file or directory と言われる...🤔\\
<WRAP color_term>
<WRAP color_command><html><pre>
<font color="#AFFF00"><b>$</b></font> <font color="#26A269">pipx</font> runpip jupyterlab4 install <font color="#A347BA">-v</font> pyopencl
</pre></html></WRAP>
<WRAP color_result_hlong><html><pre>Using pip 24.0 from /home/dietpi/.local/pipx/shared/lib/python3.11/site-packages/pip (python 3.11)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple/
Collecting pyopencl
Downloading pyopencl-2024.1.tar.gz (473 kB)
<font color="#5FAF00">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</font> <font color="#26A269">473.9/473.9 kB</font> <font color="#C01C28">167.2 kB/s</font> eta <font color="#2AA1B3">0:00:00</font>
Running command pip subprocess to install build dependencies
...
arm-linux-gnueabihf-g++ -shared -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-armv6l-cpython-311/src/bitlog.o build/temp.linux-armv6l-cpython-311/src/wrap_cl.o build/temp.linux-armv6l-cpython-311/src/wrap_cl_part_1.o build/temp.linux-armv6l-cpython-311/src/wrap_cl_part_2.o build/temp.linux-armv6l-cpython-311/src/wrap_constants.o build/temp.linux-armv6l-cpython-311/src/wrap_mempool.o -L/usr/lib/arm-linux-gnueabihf -lOpenCL -o build/lib.linux-armv6l-cpython-311/pyopencl/_cl.cpython-311-arm-linux-gnueabihf.so -Wl,--no-as-needed
/usr/bin/ld: cannot find -lOpenCL: No such file or directory
collect2: error: ld returned 1 exit status
error: command '/usr/bin/arm-linux-gnueabihf-g++' failed with exit code 1
<font color="#C01C28"><b>error</b></font>: <b>subprocess-exited-with-error</b>
<font color="#C01C28">×</font> <font color="#26A269">Building wheel for pyopencl </font><font color="#26A269"><b>(</b></font><font color="#26A269">pyproject.toml</font><font color="#26A269"><b>)</b></font> did not run successfully.
<font color="#C01C28">│</font> exit code: <font color="#2AA1B3"><b>1</b></font>
<font color="#C01C28">╰─></font> See above for output.
<font color="#A347BA"><b>note</b></font>: This error originates from a subprocess, and is likely not a problem with pip.
<font color="#A347BA"><b>full command</b></font>: <font color="#12488B">/home/dietpi/.local/pipx/venvs/jupyterlab4/bin/python /home/dietpi/.local/pipx/shared/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /var/tmp/tmpyzhsl8yg</font>
<font color="#A347BA"><b>cwd</b></font>: /var/tmp/pip-install-5l0xbf79/pyopencl_39664cd03bea4d028f8a73bd6abaf1aa
Building wheel for pyopencl (pyproject.toml) ... error
<font color="#C01C28"> ERROR: Failed building wheel for pyopencl</font>
Failed to build pyopencl
<font color="#C01C28">ERROR: Could not build wheels for pyopencl, which is required to install pyproject.toml-based projects</font>
'/home/dietpi/.local/pipx/venvs/jupyterlab4/bin/python -m pip install -v pyopencl' failed
</pre></html></WRAP>
</WRAP>
不足している ocl-icd-opencl-dev ocl-icd-dev をインストールする...🤔\\
<WRAP color_term>
<WRAP color_command><html><pre>
<font color="#AFFF00"><b>$</b></font> <font color="#26A269">sudo</font> <font color="#26A269">apt</font> install ocl-icd-opencl-dev ocl-icd-dev
</pre></html></WRAP>
<WRAP color_result_hlong><html><pre>
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Recommended packages:
libgl-dev
The following NEW packages will be installed:
ocl-icd-dev ocl-icd-opencl-dev
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.5 kB of archives.
After this operation, 116 kB of additional disk space will be used.
Get:1 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bookworm/main armhf ocl-icd-dev armhf 2.3.1-1 [17.9 kB]
Get:2 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bookworm/main armhf ocl-icd-opencl-dev armhf 2.3.1-1 [11.6 kB]
Fetched 29.5 kB in 2s (12.3 kB/s)<font color="#A2734C"> </font>
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package ocl-icd-dev:armhf.
(Reading database ... 141263 files and directories currently installed.)
Preparing to unpack .../ocl-icd-dev_2.3.1-1_armhf.deb ...
Unpacking ocl-icd-dev:armhf (2.3.1-1) ...
Selecting previously unselected package ocl-icd-opencl-dev:armhf.
Preparing to unpack .../ocl-icd-opencl-dev_2.3.1-1_armhf.deb ...
Unpacking ocl-icd-opencl-dev:armhf (2.3.1-1) ...
Setting up ocl-icd-dev:armhf (2.3.1-1) ...
Setting up ocl-icd-opencl-dev:armhf (2.3.1-1) ...
</pre></html></WRAP>
</WRAP>
ビルド成功😍\\
<WRAP color_term>
<WRAP color_command><html><pre>
<font color="#AFFF00"><b>$</b></font> <font color="#26A269">sudo</font> <font color="#26A269">apt</font> install ocl-icd-opencl-dev ocl-icd-dev
</pre></html></WRAP>
<WRAP color_result_hlong><html><pre>
Using pip 24.0 from /home/dietpi/.local/pipx/shared/lib/python3.11/site-packages/pip (python 3.11)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple/
Collecting pyopencl
Downloading pyopencl-2024.1.tar.gz (473 kB)
<font color="#5FAF00">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</font> <font color="#26A269">473.9/473.9 kB</font> <font color="#C01C28">261.0 kB/s</font> eta <font color="#2AA1B3">0:00:00</font>
Running command pip subprocess to install build dependencies
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple/, https://www.piwheels.org/simple/
Ignoring numpy: markers 'python_version >= "3.9" and platform_python_implementation == "PyPy"' don't match your environment
Collecting setuptools>=42.0.0
Downloading https://www.piwheels.org/simple/setuptools/setuptools-69.5.1-py3-none-any.whl (894 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 894.6/894.6 kB 310.9 kB/s eta 0:00:00
Collecting wheel>=0.34.2
Downloading https://www.piwheels.org/simple/wheel/wheel-0.43.0-py3-none-any.whl (65 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.8/65.8 kB 382.3 kB/s eta 0:00:00
Collecting oldest-supported-numpy
Downloading https://www.piwheels.org/simple/oldest-supported-numpy/oldest_supported_numpy-2023.12.21-py3-none-any.whl (4.9 kB)
Collecting pybind11>=2.5.0
Downloading https://www.piwheels.org/simple/pybind11/pybind11-2.12.0-py3-none-any.whl (234 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 235.0/235.0 kB 262.0 kB/s eta 0:00:00
Collecting numpy==1.23.2 (from oldest-supported-numpy)
Downloading https://www.piwheels.org/simple/numpy/numpy-1.23.2-cp311-cp311-linux_armv6l.whl (12.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.4/12.4 MB 404.2 kB/s eta 0:00:00
Installing collected packages: wheel, setuptools, pybind11, numpy, oldest-supported-numpy
Successfully installed numpy-1.23.2 oldest-supported-numpy-2023.12.21 pybind11-2.12.0 setuptools-69.5.1 wheel-0.43.0
Installing build dependencies ... done
Running command Getting requirements to build wheel
running egg_info
writing pyopencl.egg-info/PKG-INFO
writing dependency_links to pyopencl.egg-info/dependency_links.txt
writing requirements to pyopencl.egg-info/requires.txt
writing top-level names to pyopencl.egg-info/top_level.txt
reading manifest file 'pyopencl.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'experiments/*.py'
warning: no previously-included files matching '*' found under directory '_skbuild'
adding license file 'LICENSE'
writing manifest file 'pyopencl.egg-info/SOURCES.txt'
Getting requirements to build wheel ... done
Running command Preparing metadata (pyproject.toml)
running dist_info
creating /var/tmp/pip-modern-metadata-i083u3n_/pyopencl.egg-info
writing /var/tmp/pip-modern-metadata-i083u3n_/pyopencl.egg-info/PKG-INFO
writing dependency_links to /var/tmp/pip-modern-metadata-i083u3n_/pyopencl.egg-info/dependency_links.txt
writing requirements to /var/tmp/pip-modern-metadata-i083u3n_/pyopencl.egg-info/requires.txt
writing top-level names to /var/tmp/pip-modern-metadata-i083u3n_/pyopencl.egg-info/top_level.txt
writing manifest file '/var/tmp/pip-modern-metadata-i083u3n_/pyopencl.egg-info/SOURCES.txt'
reading manifest file '/var/tmp/pip-modern-metadata-i083u3n_/pyopencl.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'experiments/*.py'
warning: no previously-included files matching '*' found under directory '_skbuild'
adding license file 'LICENSE'
writing manifest file '/var/tmp/pip-modern-metadata-i083u3n_/pyopencl.egg-info/SOURCES.txt'
creating '/var/tmp/pip-modern-metadata-i083u3n_/pyopencl-2024.1.dist-info'
Preparing metadata (pyproject.toml) ... done
Link requires a different Python (3.11.2 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/3a/be/650f9c091ef71cb01d735775d554e068752d3ff63d7943b26316dc401749/numpy-1.21.2.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
Link requires a different Python (3.11.2 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/5f/d6/ad58ded26556eaeaa8c971e08b6466f17c4ac4d786cd3d800e26ce59cc01/numpy-1.21.3.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
Link requires a different Python (3.11.2 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/fb/48/b0708ebd7718a8933f0d3937513ef8ef2f4f04529f1f66ca86d873043921/numpy-1.21.4.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
Link requires a different Python (3.11.2 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/c2/a8/a924a09492bdfee8c2ec3094d0a13f2799800b4fdc9c890738aeeb12c72e/numpy-1.21.5.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
Link requires a different Python (3.11.2 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/45/b7/de7b8e67f2232c26af57c205aaad29fe17754f793404f59c8a730c7a191a/numpy-1.21.6.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
Collecting numpy (from pyopencl)
<font color="#A2734C"> WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))': /simple/numpy/numpy-1.26.4-cp311-cp311-linux_armv6l.whl</font>
Downloading https://www.piwheels.org/simple/numpy/numpy-1.26.4-cp311-cp311-linux_armv6l.whl (5.6 MB)
<font color="#5FAF00">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</font> <font color="#26A269">5.6/5.6 MB</font> <font color="#C01C28">393.0 kB/s</font> eta <font color="#2AA1B3">0:00:00</font>
Collecting pytools>=2021.2.7 (from pyopencl)
Downloading https://www.piwheels.org/simple/pytools/pytools-2024.1.1-py2.py3-none-any.whl (85 kB)
<font color="#5FAF00">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</font> <font color="#26A269">85.1/85.1 kB</font> <font color="#C01C28">169.0 kB/s</font> eta <font color="#2AA1B3">0:00:00</font>
Requirement already satisfied: platformdirs>=2.2.0 in ./.local/pipx/venvs/jupyterlab4/lib/python3.11/site-packages (from pyopencl) (4.2.0)
Building wheels for collected packages: pyopencl
Running command Building wheel for pyopencl (pyproject.toml)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv6l-cpython-311
creating build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/bitonic_sort_templates.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/elementwise.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/array.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/bitonic_sort.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/clmath.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/tools.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/cltypes.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/cache.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/_mymako.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/version.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/__init__.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/clrandom.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/reduction.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/invoker.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/algorithm.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/ipython_ext.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/_cluda.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/scan.py -> build/lib.linux-armv6l-cpython-311/pyopencl
copying pyopencl/capture_call.py -> build/lib.linux-armv6l-cpython-311/pyopencl
creating build/lib.linux-armv6l-cpython-311/pyopencl/characterize
copying pyopencl/characterize/__init__.py -> build/lib.linux-armv6l-cpython-311/pyopencl/characterize
copying pyopencl/characterize/performance.py -> build/lib.linux-armv6l-cpython-311/pyopencl/characterize
creating build/lib.linux-armv6l-cpython-311/pyopencl/compyte
copying pyopencl/compyte/array.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte
copying pyopencl/compyte/dtypes.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte
copying pyopencl/compyte/__init__.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte
creating build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray
copying pyopencl/compyte/ndarray/gen_elemwise.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray
copying pyopencl/compyte/ndarray/test_gpu_ndarray.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray
copying pyopencl/compyte/ndarray/setup_opencl.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray
copying pyopencl/compyte/ndarray/__init__.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray
copying pyopencl/compyte/ndarray/gen_reduction.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray
copying pyopencl/compyte/ndarray/test_gpu_elemwise.py -> build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray
running egg_info
writing pyopencl.egg-info/PKG-INFO
writing dependency_links to pyopencl.egg-info/dependency_links.txt
writing requirements to pyopencl.egg-info/requires.txt
writing top-level names to pyopencl.egg-info/top_level.txt
reading manifest file 'pyopencl.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'experiments/*.py'
warning: no previously-included files matching '*' found under directory '_skbuild'
adding license file 'LICENSE'
writing manifest file 'pyopencl.egg-info/SOURCES.txt'
/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'pyopencl.cl' is absent from the `packages` configuration.
!!
********************************************************************************
############################
# Package would be ignored #
############################
Python recognizes 'pyopencl.cl' as an importable package[^1],
but it is absent from setuptools' `packages` configuration.
This leads to an ambiguous overall configuration. If you want to distribute this
package, please make sure that 'pyopencl.cl' is explicitly added
to the `packages` configuration field.
Alternatively, you can also rely on setuptools' discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
If you don't want 'pyopencl.cl' to be distributed and are
already explicitly excluding 'pyopencl.cl' via
`find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
you can try to use `exclude_package_data`, or `include-package-data=False` in
combination with a more fine grained `package-data` configuration.
You can read more about "package data files" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[^1]: For Python, any directory (with suitable naming) can be imported,
even if it does not contain any `.py` files.
On the other hand, currently there is no concept of package data
directory, all directories are treated like packages.
********************************************************************************
!!
check.warn(importable)
creating build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-airy.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-bessel-j-complex.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-bessel-j.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-bessel-y.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-complex.h -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-eval-tbl.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-hankel-complex.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
copying pyopencl/cl/pyopencl-ranluxcl.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl
creating build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-random123
copying pyopencl/cl/pyopencl-random123/array.h -> build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-random123
copying pyopencl/cl/pyopencl-random123/openclfeatures.h -> build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-random123
copying pyopencl/cl/pyopencl-random123/philox.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-random123
copying pyopencl/cl/pyopencl-random123/threefry.cl -> build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-random123
running build_ext
creating var
creating var/tmp
arm-linux-gnueabihf-gcc -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -I/home/dietpi/.local/pipx/venvs/jupyterlab4/include -I/usr/include/python3.11 -c /var/tmp/tmp8yqop67k.cpp -o var/tmp/tmp8yqop67k.o -std=gnu++14
arm-linux-gnueabihf-gcc -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -I/home/dietpi/.local/pipx/venvs/jupyterlab4/include -I/usr/include/python3.11 -c /var/tmp/tmpz4s1771z.cpp -o var/tmp/tmpz4s1771z.o -fvisibility=hidden
building 'pyopencl._cl' extension
creating build/temp.linux-armv6l-cpython-311
creating build/temp.linux-armv6l-cpython-311/src
arm-linux-gnueabihf-gcc -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -DPYGPU_PACKAGE=pyopencl -DPYGPU_PYOPENCL=1 -Ipybind11/include -I/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/pybind11/include -I/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include -I/home/dietpi/.local/pipx/venvs/jupyterlab4/include -I/usr/include/python3.11 -c -std=gnu++14 src/bitlog.cpp -o build/temp.linux-armv6l-cpython-311/src/bitlog.o -fvisibility=hidden -DVERSION_INFO=\"2024.1\" -fvisibility=hidden
arm-linux-gnueabihf-gcc -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -DPYGPU_PACKAGE=pyopencl -DPYGPU_PYOPENCL=1 -Ipybind11/include -I/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/pybind11/include -I/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include -I/home/dietpi/.local/pipx/venvs/jupyterlab4/include -I/usr/include/python3.11 -c -std=gnu++14 src/wrap_cl.cpp -o build/temp.linux-armv6l-cpython-311/src/wrap_cl.o -fvisibility=hidden -DVERSION_INFO=\"2024.1\" -fvisibility=hidden
In file included from /var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948,
from /var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h:5,
from src/wrap_cl.hpp:101,
from src/wrap_cl.cpp:29:
/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with " \
| ^~~~~~~
arm-linux-gnueabihf-gcc -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -DPYGPU_PACKAGE=pyopencl -DPYGPU_PYOPENCL=1 -Ipybind11/include -I/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/pybind11/include -I/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include -I/home/dietpi/.local/pipx/venvs/jupyterlab4/include -I/usr/include/python3.11 -c -std=gnu++14 src/wrap_cl_part_1.cpp -o build/temp.linux-armv6l-cpython-311/src/wrap_cl_part_1.o -fvisibility=hidden -DVERSION_INFO=\"2024.1\" -fvisibility=hidden
In file included from /var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948,
from /var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h:5,
from src/wrap_cl.hpp:101,
from src/wrap_cl_part_1.cpp:30:
/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with " \
| ^~~~~~~
arm-linux-gnueabihf-gcc -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -DPYGPU_PACKAGE=pyopencl -DPYGPU_PYOPENCL=1 -Ipybind11/include -I/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/pybind11/include -I/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include -I/home/dietpi/.local/pipx/venvs/jupyterlab4/include -I/usr/include/python3.11 -c -std=gnu++14 src/wrap_cl_part_2.cpp -o build/temp.linux-armv6l-cpython-311/src/wrap_cl_part_2.o -fvisibility=hidden -DVERSION_INFO=\"2024.1\" -fvisibility=hidden
In file included from /var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948,
from /var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h:5,
from src/wrap_cl.hpp:101,
from src/wrap_cl_part_2.cpp:31:
/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with " \
| ^~~~~~~
src/wrap_cl.hpp: In function ‘pyopencl::event* pyopencl::enqueue_svm_map(command_queue&, cl_bool, cl_map_flags, svm_pointer&, pybind11::object, pybind11::object)’:
src/wrap_cl.hpp:4025:34: warning: ‘size’ may be used uninitialized [-Wmaybe-uninitialized]
4025 | if (have_size && user_size > size)
| ~~~~~~~~~~^~~~~~
src/wrap_cl.hpp:4015:12: note: ‘size’ was declared here
4015 | size_t size;
| ^~~~
src/wrap_cl.hpp: In function ‘pyopencl::event* pyopencl::enqueue_svm_memfill(command_queue&, svm_pointer&, pybind11::object, pybind11::object, pybind11::object)’:
src/wrap_cl.hpp:3970:34: warning: ‘size’ may be used uninitialized [-Wmaybe-uninitialized]
3970 | if (have_size && user_size > size)
| ~~~~~~~~~~^~~~~~
src/wrap_cl.hpp:3960:12: note: ‘size’ was declared here
3960 | size_t size;
| ^~~~
arm-linux-gnueabihf-gcc -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -DPYGPU_PACKAGE=pyopencl -DPYGPU_PYOPENCL=1 -Ipybind11/include -I/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/pybind11/include -I/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include -I/home/dietpi/.local/pipx/venvs/jupyterlab4/include -I/usr/include/python3.11 -c -std=gnu++14 src/wrap_constants.cpp -o build/temp.linux-armv6l-cpython-311/src/wrap_constants.o -fvisibility=hidden -DVERSION_INFO=\"2024.1\" -fvisibility=hidden
In file included from /var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948,
from /var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h:5,
from src/wrap_cl.hpp:101,
from src/wrap_constants.cpp:30:
/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with " \
| ^~~~~~~
arm-linux-gnueabihf-gcc -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -DPYGPU_PACKAGE=pyopencl -DPYGPU_PYOPENCL=1 -Ipybind11/include -I/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/pybind11/include -I/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include -I/home/dietpi/.local/pipx/venvs/jupyterlab4/include -I/usr/include/python3.11 -c -std=gnu++14 src/wrap_mempool.cpp -o build/temp.linux-armv6l-cpython-311/src/wrap_mempool.o -fvisibility=hidden -DVERSION_INFO=\"2024.1\" -fvisibility=hidden
In file included from /var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948,
from /var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h:5,
from src/wrap_cl.hpp:101,
from src/wrap_mempool.cpp:37:
/var/tmp/pip-build-env-qza3q78r/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with " \
| ^~~~~~~
arm-linux-gnueabihf-g++ -shared -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-armv6l-cpython-311/src/bitlog.o build/temp.linux-armv6l-cpython-311/src/wrap_cl.o build/temp.linux-armv6l-cpython-311/src/wrap_cl_part_1.o build/temp.linux-armv6l-cpython-311/src/wrap_cl_part_2.o build/temp.linux-armv6l-cpython-311/src/wrap_constants.o build/temp.linux-armv6l-cpython-311/src/wrap_mempool.o -L/usr/lib/arm-linux-gnueabihf -lOpenCL -o build/lib.linux-armv6l-cpython-311/pyopencl/_cl.cpython-311-arm-linux-gnueabihf.so -Wl,--no-as-needed
installing to build/bdist.linux-armv6l/wheel
running install
running install_lib
creating build/bdist.linux-armv6l
creating build/bdist.linux-armv6l/wheel
creating build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/bitonic_sort_templates.py -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/elementwise.py -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/array.py -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/bitonic_sort.py -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/_cl.cpython-311-arm-linux-gnueabihf.so -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/clmath.py -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/tools.py -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/cltypes.py -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/cache.py -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/_mymako.py -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/version.py -> build/bdist.linux-armv6l/wheel/pyopencl
creating build/bdist.linux-armv6l/wheel/pyopencl/characterize
copying build/lib.linux-armv6l-cpython-311/pyopencl/characterize/__init__.py -> build/bdist.linux-armv6l/wheel/pyopencl/characterize
copying build/lib.linux-armv6l-cpython-311/pyopencl/characterize/performance.py -> build/bdist.linux-armv6l/wheel/pyopencl/characterize
copying build/lib.linux-armv6l-cpython-311/pyopencl/__init__.py -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/clrandom.py -> build/bdist.linux-armv6l/wheel/pyopencl
creating build/bdist.linux-armv6l/wheel/pyopencl/cl
copying build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-bessel-y.cl -> build/bdist.linux-armv6l/wheel/pyopencl/cl
copying build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-eval-tbl.cl -> build/bdist.linux-armv6l/wheel/pyopencl/cl
copying build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-ranluxcl.cl -> build/bdist.linux-armv6l/wheel/pyopencl/cl
copying build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-hankel-complex.cl -> build/bdist.linux-armv6l/wheel/pyopencl/cl
copying build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-bessel-j-complex.cl -> build/bdist.linux-armv6l/wheel/pyopencl/cl
copying build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-bessel-j.cl -> build/bdist.linux-armv6l/wheel/pyopencl/cl
copying build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-complex.h -> build/bdist.linux-armv6l/wheel/pyopencl/cl
copying build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-airy.cl -> build/bdist.linux-armv6l/wheel/pyopencl/cl
creating build/bdist.linux-armv6l/wheel/pyopencl/cl/pyopencl-random123
copying build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-random123/openclfeatures.h -> build/bdist.linux-armv6l/wheel/pyopencl/cl/pyopencl-random123
copying build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-random123/philox.cl -> build/bdist.linux-armv6l/wheel/pyopencl/cl/pyopencl-random123
copying build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-random123/threefry.cl -> build/bdist.linux-armv6l/wheel/pyopencl/cl/pyopencl-random123
copying build/lib.linux-armv6l-cpython-311/pyopencl/cl/pyopencl-random123/array.h -> build/bdist.linux-armv6l/wheel/pyopencl/cl/pyopencl-random123
copying build/lib.linux-armv6l-cpython-311/pyopencl/reduction.py -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/invoker.py -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/algorithm.py -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/ipython_ext.py -> build/bdist.linux-armv6l/wheel/pyopencl
creating build/bdist.linux-armv6l/wheel/pyopencl/compyte
copying build/lib.linux-armv6l-cpython-311/pyopencl/compyte/array.py -> build/bdist.linux-armv6l/wheel/pyopencl/compyte
copying build/lib.linux-armv6l-cpython-311/pyopencl/compyte/dtypes.py -> build/bdist.linux-armv6l/wheel/pyopencl/compyte
creating build/bdist.linux-armv6l/wheel/pyopencl/compyte/ndarray
copying build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray/gen_elemwise.py -> build/bdist.linux-armv6l/wheel/pyopencl/compyte/ndarray
copying build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray/test_gpu_ndarray.py -> build/bdist.linux-armv6l/wheel/pyopencl/compyte/ndarray
copying build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray/setup_opencl.py -> build/bdist.linux-armv6l/wheel/pyopencl/compyte/ndarray
copying build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray/__init__.py -> build/bdist.linux-armv6l/wheel/pyopencl/compyte/ndarray
copying build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray/gen_reduction.py -> build/bdist.linux-armv6l/wheel/pyopencl/compyte/ndarray
copying build/lib.linux-armv6l-cpython-311/pyopencl/compyte/ndarray/test_gpu_elemwise.py -> build/bdist.linux-armv6l/wheel/pyopencl/compyte/ndarray
copying build/lib.linux-armv6l-cpython-311/pyopencl/compyte/__init__.py -> build/bdist.linux-armv6l/wheel/pyopencl/compyte
copying build/lib.linux-armv6l-cpython-311/pyopencl/_cluda.py -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/scan.py -> build/bdist.linux-armv6l/wheel/pyopencl
copying build/lib.linux-armv6l-cpython-311/pyopencl/capture_call.py -> build/bdist.linux-armv6l/wheel/pyopencl
running install_egg_info
Copying pyopencl.egg-info to build/bdist.linux-armv6l/wheel/pyopencl-2024.1-py3.11.egg-info
running install_scripts
creating build/bdist.linux-armv6l/wheel/pyopencl-2024.1.dist-info/WHEEL
creating '/var/tmp/pip-wheel-kyepds47/.tmp-_dqcawc0/pyopencl-2024.1-cp311-cp311-linux_armv6l.whl' and adding 'build/bdist.linux-armv6l/wheel' to it
adding 'pyopencl/__init__.py'
adding 'pyopencl/_cl.cpython-311-arm-linux-gnueabihf.so'
adding 'pyopencl/_cluda.py'
adding 'pyopencl/_mymako.py'
adding 'pyopencl/algorithm.py'
adding 'pyopencl/array.py'
adding 'pyopencl/bitonic_sort.py'
adding 'pyopencl/bitonic_sort_templates.py'
adding 'pyopencl/cache.py'
adding 'pyopencl/capture_call.py'
adding 'pyopencl/clmath.py'
adding 'pyopencl/clrandom.py'
adding 'pyopencl/cltypes.py'
adding 'pyopencl/elementwise.py'
adding 'pyopencl/invoker.py'
adding 'pyopencl/ipython_ext.py'
adding 'pyopencl/reduction.py'
adding 'pyopencl/scan.py'
adding 'pyopencl/tools.py'
adding 'pyopencl/version.py'
adding 'pyopencl/characterize/__init__.py'
adding 'pyopencl/characterize/performance.py'
adding 'pyopencl/cl/pyopencl-airy.cl'
adding 'pyopencl/cl/pyopencl-bessel-j-complex.cl'
adding 'pyopencl/cl/pyopencl-bessel-j.cl'
adding 'pyopencl/cl/pyopencl-bessel-y.cl'
adding 'pyopencl/cl/pyopencl-complex.h'
adding 'pyopencl/cl/pyopencl-eval-tbl.cl'
adding 'pyopencl/cl/pyopencl-hankel-complex.cl'
adding 'pyopencl/cl/pyopencl-ranluxcl.cl'
adding 'pyopencl/cl/pyopencl-random123/array.h'
adding 'pyopencl/cl/pyopencl-random123/openclfeatures.h'
adding 'pyopencl/cl/pyopencl-random123/philox.cl'
adding 'pyopencl/cl/pyopencl-random123/threefry.cl'
adding 'pyopencl/compyte/__init__.py'
adding 'pyopencl/compyte/array.py'
adding 'pyopencl/compyte/dtypes.py'
adding 'pyopencl/compyte/ndarray/__init__.py'
adding 'pyopencl/compyte/ndarray/gen_elemwise.py'
adding 'pyopencl/compyte/ndarray/gen_reduction.py'
adding 'pyopencl/compyte/ndarray/setup_opencl.py'
adding 'pyopencl/compyte/ndarray/test_gpu_elemwise.py'
adding 'pyopencl/compyte/ndarray/test_gpu_ndarray.py'
adding 'pyopencl-2024.1.dist-info/LICENSE'
adding 'pyopencl-2024.1.dist-info/METADATA'
adding 'pyopencl-2024.1.dist-info/WHEEL'
adding 'pyopencl-2024.1.dist-info/top_level.txt'
adding 'pyopencl-2024.1.dist-info/RECORD'
removing build/bdist.linux-armv6l/wheel
Building wheel for pyopencl (pyproject.toml) ... done
Created wheel for pyopencl: filename=pyopencl-2024.1-cp311-cp311-linux_armv6l.whl size=696905 sha256=058c3a76013776f403eb910c80dfd254da8b4fbda2c89b4b41e0e65877bf4ee7
Stored in directory: /var/tmp/pip-ephem-wheel-cache-9m5aar11/wheels/f1/81/49/101a6363839b8d96eb0932724c041725444b34c62f6b946591
Successfully built pyopencl
Installing collected packages: pytools, numpy, pyopencl
changing mode of /home/dietpi/.local/pipx/venvs/jupyterlab4/bin/f2py to 755
Successfully installed numpy-1.26.4 pyopencl-2024.1 pytools-2024.1.1
</pre></html></WRAP>
</WRAP>
==== Pybind11 is not installed. と Mako is not installed. が発生する ==== ==== Pybind11 is not installed. と Mako is not installed. が発生する ====
<code> <code>
</code> </code>
</WRAP> </WRAP>
==== error: Microsoft Visual C++ 14.0 is required. が発生する ====
<code>
> pip install pyopencl
</code>
<WRAP prewrap 100% #result_long>
<code>
Collecting pyopencl
Using cached pyopencl-2020.2.1.tar.gz (352 kB)
Requirement already satisfied: numpy in c:\users\tomoyan\py38_opencl\lib\site-packages (from pyopencl) (1.19.1)
Requirement already satisfied: pytools>=2017.6 in c:\users\tomoyan\py38_opencl\lib\site-packages (from pyopencl) (2020.4)
Requirement already satisfied: decorator>=3.2.0 in c:\users\tomoyan\py38_opencl\lib\site-packages (from pyopencl) (4.4.2)
Requirement already satisfied: appdirs>=1.4.0 in c:\users\tomoyan\py38_opencl\lib\site-packages (from pyopencl) (1.4.4)
Requirement already satisfied: six>=1.9.0 in c:\users\tomoyan\py38_opencl\lib\site-packages (from pyopencl) (1.15.0)
Using legacy setup.py install for pyopencl, since package 'wheel' is not installed.
Installing collected packages: pyopencl
Running setup.py install for pyopencl ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\tomoyan\py38_opencl\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\tomoyan\\AppData\\Local\\Temp\\pip-install-kysbgjhb\\pyopencl\\setup.py'"'"'; __file__='"'"'C:\\Users\\tomoyan\\AppData\\Local\\Temp\\pip-install-kysbgjhb\\pyopencl\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\tomoyan\AppData\Local\Temp\pip-record-u_d5qgvn\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\tomoyan\py38_opencl\include\site\python3.8\pyopencl'
cwd: C:\Users\tomoyan\AppData\Local\Temp\pip-install-kysbgjhb\pyopencl\
Complete output (70 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\pyopencl
copying pyopencl\algorithm.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\array.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\bitonic_sort.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\bitonic_sort_templates.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\cache.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\capture_call.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\clmath.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\clrandom.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\cltypes.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\elementwise.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\invoker.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\ipython_ext.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\reduction.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\scan.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\tools.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\version.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\_buffers.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\_cluda.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\_mymako.py -> build\lib.win-amd64-3.8\pyopencl
copying pyopencl\__init__.py -> build\lib.win-amd64-3.8\pyopencl
creating build\lib.win-amd64-3.8\pyopencl\characterize
copying pyopencl\characterize\performance.py -> build\lib.win-amd64-3.8\pyopencl\characterize
copying pyopencl\characterize\__init__.py -> build\lib.win-amd64-3.8\pyopencl\characterize
creating build\lib.win-amd64-3.8\pyopencl\compyte
copying pyopencl\compyte\array.py -> build\lib.win-amd64-3.8\pyopencl\compyte
copying pyopencl\compyte\dtypes.py -> build\lib.win-amd64-3.8\pyopencl\compyte
copying pyopencl\compyte\__init__.py -> build\lib.win-amd64-3.8\pyopencl\compyte
creating build\lib.win-amd64-3.8\pyopencl\compyte\ndarray
copying pyopencl\compyte\ndarray\gen_elemwise.py -> build\lib.win-amd64-3.8\pyopencl\compyte\ndarray
copying pyopencl\compyte\ndarray\gen_reduction.py -> build\lib.win-amd64-3.8\pyopencl\compyte\ndarray
copying pyopencl\compyte\ndarray\setup_opencl.py -> build\lib.win-amd64-3.8\pyopencl\compyte\ndarray
copying pyopencl\compyte\ndarray\test_gpu_elemwise.py -> build\lib.win-amd64-3.8\pyopencl\compyte\ndarray
copying pyopencl\compyte\ndarray\test_gpu_ndarray.py -> build\lib.win-amd64-3.8\pyopencl\compyte\ndarray
copying pyopencl\compyte\ndarray\__init__.py -> build\lib.win-amd64-3.8\pyopencl\compyte\ndarray
running egg_info
writing pyopencl.egg-info\PKG-INFO
writing dependency_links to pyopencl.egg-info\dependency_links.txt
writing requirements to pyopencl.egg-info\requires.txt
writing top-level names to pyopencl.egg-info\top_level.txt
reading manifest file 'pyopencl.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.h'
warning: no files found matching 'doc\_static\*.css'
warning: no files found matching 'doc\_templates\*.html'
warning: no files found matching '*.py.in'
warning: no files found matching 'pyproject.toml'
writing manifest file 'pyopencl.egg-info\SOURCES.txt'
creating build\lib.win-amd64-3.8\pyopencl\cl
copying pyopencl\cl\pyopencl-airy.cl -> build\lib.win-amd64-3.8\pyopencl\cl
copying pyopencl\cl\pyopencl-bessel-j-complex.cl -> build\lib.win-amd64-3.8\pyopencl\cl
copying pyopencl\cl\pyopencl-bessel-j.cl -> build\lib.win-amd64-3.8\pyopencl\cl
copying pyopencl\cl\pyopencl-bessel-y.cl -> build\lib.win-amd64-3.8\pyopencl\cl
copying pyopencl\cl\pyopencl-complex.h -> build\lib.win-amd64-3.8\pyopencl\cl
copying pyopencl\cl\pyopencl-eval-tbl.cl -> build\lib.win-amd64-3.8\pyopencl\cl
copying pyopencl\cl\pyopencl-hankel-complex.cl -> build\lib.win-amd64-3.8\pyopencl\cl
copying pyopencl\cl\pyopencl-ranluxcl.cl -> build\lib.win-amd64-3.8\pyopencl\cl
creating build\lib.win-amd64-3.8\pyopencl\cl\pyopencl-random123
copying pyopencl\cl\pyopencl-random123\array.h -> build\lib.win-amd64-3.8\pyopencl\cl\pyopencl-random123
copying pyopencl\cl\pyopencl-random123\openclfeatures.h -> build\lib.win-amd64-3.8\pyopencl\cl\pyopencl-random123
copying pyopencl\cl\pyopencl-random123\philox.cl -> build\lib.win-amd64-3.8\pyopencl\cl\pyopencl-random123
copying pyopencl\cl\pyopencl-random123\threefry.cl -> build\lib.win-amd64-3.8\pyopencl\cl\pyopencl-random123
running build_ext
building 'pyopencl._cl' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\tomoyan\py38_opencl\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\tomoyan\\AppData\\Local\\Temp\\pip-install-kysbgjhb\\pyopencl\\setup.py'"'"'; __file__='"'"'C:\\Users\\tomoyan\\AppData\\Local\\Temp\\pip-install-kysbgjhb\\pyopencl\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\tomoyan\AppData\Local\Temp\pip-record-u_d5qgvn\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\tomoyan\py38_opencl\include\site\python3.8\pyopencl' Check the logs for full command output.
</code>
</WRAP>
手軽に済ませたい場合は [[windows:build_tools_for_visual_studio|Build Tools for Visual Studio]] をインストールする。\\
==== fatal error C1083: include ファイルを開けません。'CL/cl.h':No such file or directory が発生する ==== ==== fatal error C1083: include ファイルを開けません。'CL/cl.h':No such file or directory が発生する ====
[[https://ja.wikipedia.org/wiki/Intel_Core_i7|Intel Core i7 - Wikipedia]]\\ [[https://ja.wikipedia.org/wiki/Intel_Core_i7|Intel Core i7 - Wikipedia]]\\
[[http://www.webmagazine.kakisiti.co.jp/?p=567|コア数も最高クロックもほとんど同じなのに Core i3 の方が Core i7 より演算性能が高いことがある? | かきしちカンパニー Web Magazine]]\\ [[http://www.webmagazine.kakisiti.co.jp/?p=567|コア数も最高クロックもほとんど同じなのに Core i3 の方が Core i7 より演算性能が高いことがある? | かきしちカンパニー Web Magazine]]\\
[[https://kenny-peng.com/2021/09/14/raspi_zero_opencl.html|Playing with the VideoCore IV GPU on a Raspberry Pi Zero using VC4CL | just for context by Kenny Peng]]\\