差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
python:pyopencl [2020/08/19 07:15] – [トラブルシューティング] ともやん | python:pyopencl [2024/04/23 13:06] – [fatal error: CL/cl.h: No such file or directory が発生する...😢] ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
- | < | + | ~~CLOSETOC~~ |
- | <script type=" | + | |
- | + | ||
- | < | + | |
- | #result pre, #mincode pre { | + | |
- | overflow: hidden; | + | |
- | font-size: 10px; | + | |
- | } | + | |
- | # | + | |
- | 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: | + | |
- | padding: 10px; | + | |
- | width: fit-content; | + | |
- | } | + | |
- | #logo p { | + | |
- | margin: 0; | + | |
- | } | + | |
- | </ | + | |
- | </ | + | |
====== PyOpenCL のインストール ====== | ====== PyOpenCL のインストール ====== | ||
ここでは、以下の CPU および GPU を使用してベンチマークを行った。\\ | ここでは、以下の CPU および GPU を使用してベンチマークを行った。\\ | ||
行 47: | 行 10: | ||
< | < | ||
- | <div id="chart_div" | + | <iframe width="640" |
- | < | + | |
- | google.charts.load(' | + | |
- | packages: [' | + | |
- | }); | + | |
- | google.charts.setOnLoadCallback(drawMultSeries); | + | |
- | + | ||
- | function drawMultSeries() { | + | |
- | let data = google.visualization.arrayToDataTable([ | + | |
- | [' | + | |
- | [' | + | |
- | {v: 0.0000072220, | + | |
- | [' | + | |
- | {v: 0.0007947200, | + | |
- | [' | + | |
- | {v: 0.0010557440, | + | |
- | [' | + | |
- | {v: 0.0010633330, | + | |
- | [' | + | |
- | {v: 0.0011095000, | + | |
- | [' | + | |
- | {v: 0.0015742400, | + | |
- | ]); | + | |
- | + | ||
- | let options = { | + | |
- | title: ' | + | |
- | chartArea: { | + | |
- | width: ' | + | |
- | }, | + | |
- | width: 600, | + | |
- | height: 400, | + | |
- | is3D: true, | + | |
- | hAxis: { | + | |
- | title: '<- fast | slow ->', | + | |
- | minValue: 0, | + | |
- | scaleType: ' | + | |
- | }, | + | |
- | vAxis: { | + | |
- | title: ' | + | |
- | }, | + | |
- | explorer: { | + | |
- | actions: [' | + | |
- | axis: ' | + | |
- | keepInBounds: | + | |
- | maxZoomIn: 4.0 | + | |
- | } | + | |
- | }; | + | |
- | + | ||
- | let chart = new google.visualization.BarChart(document.getElementById(' | + | |
- | chart.draw(data, | + | |
- | } | + | |
- | | + | |
</ | </ | ||
+ | |||
+ | 本家: [[https:// | ||
+ | OpenCL本家: | ||
+ | |||
+ | ===== OpenCL 開発環境 ===== | ||
+ | OpenCL を利用するには OS プラットフォームに関係なく、[[c_cpp: | ||
+ | |||
===== Windows ===== | ===== Windows ===== | ||
PyOpenCL をインストールするには、[[windows: | PyOpenCL をインストールするには、[[windows: | ||
- | \\ | + | |
+ | PyOpenCL 仮想環境の作成を行う。(任意)\\ | ||
+ | <WRAP prewrap 100% # | ||
+ | < | ||
+ | $ 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) | ||
+ | | ||
+ | Installing collected packages: pip | ||
+ | Attempting uninstall: pip | ||
+ | Found existing installation: | ||
+ | Uninstalling pip-20.1.1: | ||
+ | Successfully uninstalled pip-20.1.1 | ||
+ | Successfully installed pip-20.2.3 | ||
+ | </ | ||
+ | </ | ||
pybind11、Mako をインストールする。\\ | pybind11、Mako をインストールする。\\ | ||
<WRAP prewrap 100% #result> | <WRAP prewrap 100% #result> | ||
< | < | ||
- | > pip install pybind11 | + | > pip install pybind11 |
Collecting pybind11 | Collecting pybind11 | ||
- | Downloading | + | Downloading pybind11-2.5.0-py2.py3-none-any.whl (296 kB) |
- | | + | |
- | Collecting | + | Collecting |
- | Downloading | + | Downloading Mako-1.1.3-py2.py3-none-any.whl (75 kB) |
- | | + | |
- | Collecting MarkupSafe> | + | Collecting MarkupSafe> |
- | Downloading | + | Downloading MarkupSafe-1.1.1-cp38-cp38-win_amd64.whl |
- | Installing collected packages: pybind11, MarkupSafe, | + | Installing collected packages: pybind11, MarkupSafe, |
- | Running setup.py install for Mako ... done | + | Successfully installed |
- | Successfully installed | + | |
</ | </ | ||
</ | </ | ||
+ | |||
PyOpenCL をインストールする。\\ | PyOpenCL をインストールする。\\ | ||
< | < | ||
行 127: | 行 64: | ||
< | < | ||
Collecting pyopencl | Collecting pyopencl | ||
- | Downloading | + | Downloading pyopencl-2020.2.2.tar.gz (352 kB) |
- | | + | |
- | Collecting numpy (from pyopencl) | + | Collecting numpy |
- | | + | |
- | | + | Collecting pytools> |
- | Collecting pytools> | + | Downloading pytools-2020.4.tar.gz (67 kB) |
- | Downloading | + | |
- | | + | Collecting decorator> |
- | Collecting decorator> | + | Downloading decorator-4.4.2-py2.py3-none-any.whl |
- | Downloading | + | Collecting appdirs> |
- | Collecting appdirs> | + | Downloading appdirs-1.4.4-py2.py3-none-any.whl |
- | Downloading | + | Collecting six>=1.8.0 |
- | Collecting six>=1.9.0 (from pyopencl) | + | |
- | | + | Using legacy ' |
+ | Using legacy ' | ||
Installing collected packages: numpy, decorator, appdirs, six, pytools, pyopencl | Installing collected packages: numpy, decorator, appdirs, six, pytools, pyopencl | ||
- | | + | |
- | 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 |
</ | </ | ||
</ | </ | ||
行 399: | 行 337: | ||
===== トラブルシューティング ===== | ===== トラブルシューティング ===== | ||
- | ==== error: | + | ==== fatal error: |
- | < | + | DietPi で pyopencl をインストールすると CL/cl.h がないと言われる...🤔\\ |
- | <code> | + | < |
+ | <WRAP color_command>< | ||
+ | <font color=" | ||
+ | </pre></ | ||
+ | <WRAP color_result_hlong>< | ||
+ | Using pip 24.0 from / | ||
+ | Looking in indexes: https:// | ||
Collecting pyopencl | Collecting pyopencl | ||
- | | + | |
- | Requirement already satisfied: numpy in c:\users\tomoyan\py38_opencl\lib\site-packages (from pyopencl) (1.19.1) | + | <font color="# |
- | Requirement already satisfied: pytools>=2017.6 in c:\users\tomoyan\py38_opencl\lib\site-packages | + | Running command pip subprocess to install build dependencies |
- | Requirement already satisfied: decorator> | + | Looking |
- | Requirement already satisfied: appdirs>=1.4.0 in c:\users\tomoyan\py38_opencl\lib\site-packages | + | Ignoring numpy: markers & |
- | Requirement already satisfied: six>=1.9.0 in c: | + | Collecting setuptools& |
- | Using legacy setup.py install for pyopencl, since package 'wheel' is not installed. | + | Downloading https:// |
- | Installing collected packages: | + | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 894.6/894.6 kB 331.6 kB/s eta 0:00:00 |
- | | + | Collecting wheel& |
- | ERROR: Command errored out with exit status 1: | + | Downloading https:// |
- | | + | |
- | cwd: C: | + | Collecting oldest-supported-numpy |
- | | + | Downloading https:// |
- | running | + | |
- | running build | + | Downloading https:// |
- | running build_py | + | |
- | creating build | + | Collecting numpy==1.23.2 (from oldest-supported-numpy) |
- | creating build\lib.win-amd64-3.8 | + | |
- | creating build\lib.win-amd64-3.8\pyopencl | + | Downloading https:// |
- | 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 | + | Successfully installed numpy-1.23.2 oldest-supported-numpy-2023.12.21 pybind11-2.12.0 setuptools-69.5.1 wheel-0.43.0 |
- | copying pyopencl\bitonic_sort_templates.py -> build\lib.win-amd64-3.8\pyopencl | + | |
- | copying pyopencl\cache.py -> build\lib.win-amd64-3.8\pyopencl | + | Running command Getting requirements to build wheel |
- | copying pyopencl\capture_call.py -> build\lib.win-amd64-3.8\pyopencl | + | running egg_info |
- | copying pyopencl\clmath.py -> build\lib.win-amd64-3.8\pyopencl | + | writing pyopencl.egg-info/ |
- | 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 | + | writing top-level names to pyopencl.egg-info/ |
- | copying pyopencl\invoker.py -> build\lib.win-amd64-3.8\pyopencl | + | reading manifest file & |
- | copying pyopencl\ipython_ext.py -> build\lib.win-amd64-3.8\pyopencl | + | |
- | copying pyopencl\reduction.py -> build\lib.win-amd64-3.8\pyopencl | + | warning: no files found matching & |
- | copying pyopencl\scan.py | + | warning: no previously-included files matching & |
- | copying pyopencl\tools.py -> build\lib.win-amd64-3.8\pyopencl | + | |
- | copying pyopencl\version.py -> build\lib.win-amd64-3.8\pyopencl | + | writing manifest file & |
- | copying pyopencl\_buffers.py -> build\lib.win-amd64-3.8\pyopencl | + | Getting requirements to build wheel ... done |
- | copying pyopencl\_cluda.py -> build\lib.win-amd64-3.8\pyopencl | + | Running |
- | copying pyopencl\_mymako.py -> build\lib.win-amd64-3.8\pyopencl | + | running dist_info |
- | copying pyopencl\__init__.py -> build\lib.win-amd64-3.8\pyopencl | + | creating / |
- | creating build\lib.win-amd64-3.8\pyopencl\characterize | + | writing / |
- | copying pyopencl\characterize\performance.py -> build\lib.win-amd64-3.8\pyopencl\characterize | + | writing dependency_links to / |
- | copying pyopencl\characterize\__init__.py -> build\lib.win-amd64-3.8\pyopencl\characterize | + | writing requirements to / |
- | creating build\lib.win-amd64-3.8\pyopencl\compyte | + | writing top-level names to / |
- | copying pyopencl\compyte\array.py -> build\lib.win-amd64-3.8\pyopencl\compyte | + | writing manifest file '/ |
- | copying pyopencl\compyte\dtypes.py -> build\lib.win-amd64-3.8\pyopencl\compyte | + | reading manifest file & |
- | copying pyopencl\compyte\__init__.py -> build\lib.win-amd64-3.8\pyopencl\compyte | + | reading manifest template & |
- | creating build\lib.win-amd64-3.8\pyopencl\compyte\ndarray | + | warning: no files found matching & |
- | copying pyopencl\compyte\ndarray\gen_elemwise.py -> build\lib.win-amd64-3.8\pyopencl\compyte\ndarray | + | warning: no previously-included files matching & |
- | copying pyopencl\compyte\ndarray\gen_reduction.py -> build\lib.win-amd64-3.8\pyopencl\compyte\ndarray | + | adding license file & |
- | copying pyopencl\compyte\ndarray\setup_opencl.py -> build\lib.win-amd64-3.8\pyopencl\compyte\ndarray | + | writing manifest file & |
- | copying pyopencl\compyte\ndarray\test_gpu_elemwise.py -> build\lib.win-amd64-3.8\pyopencl\compyte\ndarray | + | creating & |
- | copying pyopencl\compyte\ndarray\test_gpu_ndarray.py -> build\lib.win-amd64-3.8\pyopencl\compyte\ndarray | + | Preparing metadata (pyproject.toml) ... done |
- | copying pyopencl\compyte\ndarray\__init__.py -> build\lib.win-amd64-3.8\pyopencl\compyte\ndarray | + | Link requires a different Python (3.11.2 not in: & |
- | running egg_info | + | Link requires a different Python (3.11.2 not in: & |
- | writing pyopencl.egg-info\PKG-INFO | + | Link requires a different Python |
- | writing dependency_links to pyopencl.egg-info\dependency_links.txt | + | Link requires a different Python (3.11.2 not in: '>=3.7,& |
- | writing requirements to pyopencl.egg-info\requires.txt | + | Link requires a different Python |
- | writing top-level names to pyopencl.egg-info\top_level.txt | + | Collecting numpy (from pyopencl) |
- | reading manifest file 'pyopencl.egg-info\SOURCES.txt' | + | Downloading https:// |
- | reading manifest template | + | < |
- | warning: no files found matching | + | Collecting pytools& |
- | warning: no files found matching | + | Downloading https:// |
- | | + | < |
- | | + | Requirement already satisfied: platformdirs& |
- | | + | Building wheels for collected packages: pyopencl |
- | | + | |
- | creating build\lib.win-amd64-3.8\pyopencl\cl | + | running |
- | copying pyopencl\cl\pyopencl-airy.cl -> build\lib.win-amd64-3.8\pyopencl\cl | + | running build |
- | copying pyopencl\cl\pyopencl-bessel-j-complex.cl -> build\lib.win-amd64-3.8\pyopencl\cl | + | running build_py |
- | copying pyopencl\cl\pyopencl-bessel-j.cl -> build\lib.win-amd64-3.8\pyopencl\cl | + | creating build |
- | copying pyopencl\cl\pyopencl-bessel-y.cl -> build\lib.win-amd64-3.8\pyopencl\cl | + | creating build/lib.linux-armv6l-cpython-311 |
- | copying pyopencl\cl\pyopencl-complex.h -> build\lib.win-amd64-3.8\pyopencl\cl | + | creating build/lib.linux-armv6l-cpython-311/ |
- | copying pyopencl\cl\pyopencl-eval-tbl.cl -> build\lib.win-amd64-3.8\pyopencl\cl | + | copying pyopencl/ |
- | copying pyopencl\cl\pyopencl-hankel-complex.cl -> build\lib.win-amd64-3.8\pyopencl\cl | + | copying pyopencl/ |
- | copying pyopencl\cl\pyopencl-ranluxcl.cl -> build\lib.win-amd64-3.8\pyopencl\cl | + | copying pyopencl/array.py -& |
- | creating build\lib.win-amd64-3.8\pyopencl\cl\pyopencl-random123 | + | copying pyopencl/ |
- | copying pyopencl\cl\pyopencl-random123\array.h -> build\lib.win-amd64-3.8\pyopencl\cl\pyopencl-random123 | + | copying pyopencl/clmath.py -& |
- | copying pyopencl\cl\pyopencl-random123\openclfeatures.h -> build\lib.win-amd64-3.8\pyopencl\cl\pyopencl-random123 | + | copying pyopencl/tools.py -& |
- | copying pyopencl\cl\pyopencl-random123\philox.cl -> build\lib.win-amd64-3.8\pyopencl\cl\pyopencl-random123 | + | copying pyopencl/cltypes.py -& |
- | copying pyopencl\cl\pyopencl-random123\threefry.cl -> build\lib.win-amd64-3.8\pyopencl\cl\pyopencl-random123 | + | copying pyopencl/cache.py -& |
- | running build_ext | + | copying pyopencl/_mymako.py -& |
- | building | + | copying pyopencl/version.py -& |
- | | + | copying pyopencl/__init__.py -& |
- | ---------------------------------------- | + | copying pyopencl/clrandom.py -& |
- | ERROR: Command errored out with exit status | + | copying pyopencl/reduction.py -& |
- | </code> | + | copying pyopencl/invoker.py -& |
+ | copying pyopencl/algorithm.py -& | ||
+ | copying pyopencl/ | ||
+ | copying pyopencl/_cluda.py -& | ||
+ | copying pyopencl/scan.py -& | ||
+ | copying pyopencl/ | ||
+ | creating build/lib.linux-armv6l-cpython-311/ | ||
+ | copying pyopencl/characterize/__init__.py -& | ||
+ | copying pyopencl/characterize/ | ||
+ | creating build/lib.linux-armv6l-cpython-311/ | ||
+ | copying pyopencl/compyte/array.py -& | ||
+ | copying pyopencl/compyte/dtypes.py -& | ||
+ | copying pyopencl/compyte/__init__.py -& | ||
+ | creating build/lib.linux-armv6l-cpython-311/ | ||
+ | copying pyopencl/compyte/ndarray/gen_elemwise.py -& | ||
+ | copying pyopencl/compyte/ndarray/ | ||
+ | copying pyopencl/compyte/ndarray/setup_opencl.py -& | ||
+ | copying pyopencl/compyte/ndarray/__init__.py -& | ||
+ | copying pyopencl/compyte/ndarray/ | ||
+ | copying 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 | ||
+ | warning: no files found matching | ||
+ | warning: no previously-included | ||
+ | adding license file & | ||
+ | writing manifest file & | ||
+ | / | ||
+ | !! | ||
+ | |||
+ | | ||
+ | ############################ | ||
+ | # Package would be ignored # | ||
+ | ############################ | ||
+ | Python recognizes & | ||
+ | but it is absent from setuptools& | ||
+ | |||
+ | This leads to an ambiguous overall configuration. If you want to distribute this | ||
+ | package, please make sure that & | ||
+ | to the `packages` configuration field. | ||
+ | |||
+ | Alternatively, | ||
+ | (for example by using `find_namespace_packages(...)`/ | ||
+ | instead of `find_packages(...)`/ | ||
+ | |||
+ | You can read more about & | ||
+ | |||
+ | - https:// | ||
+ | |||
+ | If you don& | ||
+ | already explicitly excluding & | ||
+ | `find_namespace_packages(...)/ | ||
+ | you can try to use `exclude_package_data`, | ||
+ | combination with a more fine grained `package-data` configuration. | ||
+ | |||
+ | You can read more about & | ||
+ | |||
+ | - https:// | ||
+ | |||
+ | |||
+ | [^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. | ||
+ | ******************************************************************************** | ||
+ | |||
+ | !! | ||
+ | | ||
+ | | ||
+ | copying pyopencl/cl/pyopencl-airy.cl -& | ||
+ | copying pyopencl/cl/pyopencl-bessel-j-complex.cl -& | ||
+ | copying pyopencl/cl/pyopencl-bessel-j.cl -& | ||
+ | copying pyopencl/cl/pyopencl-bessel-y.cl -& | ||
+ | copying pyopencl/cl/pyopencl-complex.h -& | ||
+ | copying pyopencl/cl/pyopencl-eval-tbl.cl -& | ||
+ | copying pyopencl/cl/pyopencl-hankel-complex.cl -& | ||
+ | copying pyopencl/cl/pyopencl-ranluxcl.cl -& | ||
+ | creating build/lib.linux-armv6l-cpython-311/ | ||
+ | copying pyopencl/cl/pyopencl-random123/array.h -& | ||
+ | copying pyopencl/cl/pyopencl-random123/openclfeatures.h -& | ||
+ | copying pyopencl/cl/pyopencl-random123/philox.cl -& | ||
+ | copying pyopencl/cl/pyopencl-random123/threefry.cl -& | ||
+ | running build_ext | ||
+ | | ||
+ | creating var/tmp | ||
+ | arm-linux-gnueabihf-gcc -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -I/ | ||
+ | arm-linux-gnueabihf-gcc -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -I/ | ||
+ | | ||
+ | | ||
+ | creating build/ | ||
+ | arm-linux-gnueabihf-gcc -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -DPYGPU_PACKAGE=pyopencl -DPYGPU_PYOPENCL=1 -Ipybind11/ | ||
+ | </pre></html></ | ||
+ | <WRAP color_result>< | ||
+ | arm-linux-gnueabihf-gcc -Wsign-compare | ||
+ | In file included from src/ | ||
+ | src/ | ||
+ | 70 | #include & | ||
+ | | ^~~~~~~~~ | ||
+ | compilation terminated. | ||
+ | error: command & | ||
+ | <font color="# | ||
+ | |||
+ | <font color="# | ||
+ | <font color="# | ||
+ | <font color="# | ||
+ | |||
+ | <font color="# | ||
+ | <font color="# | ||
+ | <font color="#A347BA">< | ||
+ | Building wheel for pyopencl | ||
+ | <font color="#C01C28"> ERROR: Failed building wheel for pyopencl</ | ||
+ | Failed to build pyopencl | ||
+ | <font color="#C01C28">ERROR: Could not build wheels for pyopencl, which is required to install pyproject.toml-based projects</ | ||
+ | & | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 不足している opencl-headers をインストールする...🤔\\ | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <font color="#AFFF00">< | ||
+ | </ | ||
+ | <WRAP color_result_hlong>< | ||
+ | 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:// | ||
+ | Get:2 http:// | ||
+ | Get:3 http:// | ||
+ | Fetched 90.9 kB in 3s (28.1 kB/s)<font color="# | ||
+ | debconf: delaying package configuration, | ||
+ | Selecting previously unselected package opencl-c-headers. | ||
+ | (Reading database ... 141224 files and directories currently installed.) | ||
+ | Preparing to unpack | ||
+ | Unpacking opencl-c-headers | ||
+ | Selecting previously unselected package opencl-clhpp-headers. | ||
+ | Preparing to unpack .../ | ||
+ | Unpacking opencl-clhpp-headers (3.0~2023.02.06-1) ... | ||
+ | Selecting previously unselected package opencl-headers. | ||
+ | Preparing to unpack .../ | ||
+ | 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) ... | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | / | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <font color="#AFFF00">< | ||
+ | </ | ||
+ | <WRAP color_result_hlong>< | ||
+ | Looking in indexes: https:// | ||
+ | Collecting pyopencl | ||
+ | Downloading pyopencl-2024.1.tar.gz | ||
+ | < | ||
+ | Running command pip subprocess to install build dependencies | ||
+ | ... | ||
+ | arm-linux-gnueabihf-g++ -shared -Wl, | ||
+ | / | ||
+ | collect2: error: ld returned 1 exit status | ||
+ | error: command '/ | ||
+ | <font color="# | ||
+ | |||
+ | <font color="# | ||
+ | <font color="# | ||
+ | <font color="# | ||
+ | |||
+ | <font color="# | ||
+ | <font color="#A347BA">< | ||
+ | <font color="# | ||
+ | Building wheel for pyopencl (pyproject.toml) ... error | ||
+ | <font color="# | ||
+ | Failed to build pyopencl | ||
+ | <font color="# | ||
+ | & | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 不足している ocl-icd-opencl-dev ocl-icd-dev をインストールする...🤔\\ | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <font color="# | ||
+ | </ | ||
+ | <WRAP color_result_hlong>< | ||
+ | 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:// | ||
+ | Get:2 http:// | ||
+ | Fetched 29.5 kB in 2s (12.3 kB/ | ||
+ | debconf: delaying package configuration, | ||
+ | Selecting previously unselected package ocl-icd-dev: | ||
+ | (Reading database ... 141263 files and directories currently installed.) | ||
+ | Preparing to unpack .../ | ||
+ | Unpacking ocl-icd-dev: | ||
+ | Selecting previously unselected package ocl-icd-opencl-dev: | ||
+ | Preparing to unpack .../ | ||
+ | Unpacking ocl-icd-opencl-dev: | ||
+ | Setting up ocl-icd-dev: | ||
+ | Setting up ocl-icd-opencl-dev: | ||
+ | </pre></ | ||
</ | </ | ||
行 638: | 行 805: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | ==== error: Microsoft Visual C++ 14.0 is required. が発生する ==== | ||
+ | < | ||
+ | > pip install pyopencl | ||
+ | </ | ||
+ | |||
+ | <WRAP prewrap 100% # | ||
+ | < | ||
+ | Collecting pyopencl | ||
+ | Using cached pyopencl-2020.2.1.tar.gz (352 kB) | ||
+ | Requirement already satisfied: numpy in c: | ||
+ | Requirement already satisfied: pytools> | ||
+ | Requirement already satisfied: decorator> | ||
+ | Requirement already satisfied: appdirs> | ||
+ | Requirement already satisfied: six> | ||
+ | Using legacy setup.py install for pyopencl, since package ' | ||
+ | Installing collected packages: pyopencl | ||
+ | Running setup.py install for pyopencl ... error | ||
+ | ERROR: Command errored out with exit status 1: | ||
+ | | ||
+ | cwd: C: | ||
+ | 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 ' | ||
+ | reading manifest template ' | ||
+ | warning: no files found matching ' | ||
+ | warning: no files found matching ' | ||
+ | warning: no files found matching ' | ||
+ | warning: no files found matching ' | ||
+ | warning: no files found matching ' | ||
+ | writing manifest file ' | ||
+ | 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 ' | ||
+ | error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": | ||
+ | ---------------------------------------- | ||
+ | ERROR: Command errored out with exit status 1: ' | ||
+ | </ | ||
+ | </ | ||
+ | 手軽に済ませたい場合は [[windows: | ||
==== fatal error C1083: include ファイルを開けません。' | ==== fatal error C1083: include ファイルを開けません。' | ||
行 749: | 行 1013: | ||
[[https:// | [[https:// | ||
[[http:// | [[http:// | ||
+ | [[https:// | ||