gpt4 book ai didi

ubuntu - pyopencl 错误 : undefined symbol: clCreateSubDevices

转载 作者:太空宇宙 更新时间:2023-11-03 16:56:11 25 4
gpt4 key购买 nike

我已经安装了 pyopencl。当我尝试时:

 python /home/a/pyopencl/examples/benchmark.py

然后我有一个错误:

 Traceback (most recent call last):
File "/home/a/pyopencl/examples/benchmark.py", line 6, in <module>
import pyopencl as cl
File "/usr/local/lib/python2.7/dist-packages/pyopencl-2013.3-py2.7-linux-
x86_64.egg/pyopencl/__init__.py", line 28, in <module>
import pyopencl._cl as _cl
ImportError: /usr/local/lib/python2.7/dist-packages/pyopencl-2013.3-py2.7-linux-
x86_64.egg/pyopencl/_cl.so: undefined symbol: clCreateSubDevices

我该如何解决?

TIA

 Python 2.7.5+ (default, Sep 19 2013, 13:48:49) 
[GCC 4.8.1] on linux2
Linux zalman 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 x86_64
x86_64 x86_64 GNU/Linux
+------------------------------------------------------+                       | NVIDIA-SMI 4.304.88   Driver Version: 304.88         |                       |-------------------------------+----------------------+----------------------+| GPU  Name                     | Bus-Id        Disp.  | Volatile Uncorr. ECC || Fan  Temp  Perf  Pwr:Usage/Cap| Memory-Usage         | GPU-Util  Compute M. ||===============================+======================+======================||   0  GeForce GTX 770          | 0000:01:00.0     N/A |                  N/A || 25%   29C  N/A     N/A /  N/A |   7%  149MB / 2047MB |     N/A      Default |+-------------------------------+----------------------+----------------------++-----------------------------------------------------------------------------+| Compute processes:                                               GPU Memory ||  GPU       PID  Process name                                     Usage      ||=============================================================================||    0            Not Supported                                               |+-----------------------------------------------------------------------------+
 ls /etc/OpenCL/vendors
nvidia.icd



locate libOpenCL.so


/etc/alternatives/x86_64-linux-gnu_libOpenCL.so
/etc/alternatives/x86_64-linux-gnu_libOpenCL.so_lib32
/usr/lib/libOpenCL.so
/usr/lib/x86_64-linux-gnu/libOpenCL.so
/usr/lib32/libOpenCL.so

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2012 NVIDIA Corporation
Built on Fri_Sep_21_17:28:58_PDT_2012
Cuda compilation tools, release 5.0, V0.2.1221

最佳答案

clCreateSubDevices 是在 OCL 1.2 中引入的。上次我检查 NVIDIA 仍然不支持 OCL 1.2。也许它最近改变了......最好检查一下。

您可以使用 class pyopencl.Device 来查询您可以使用哪个版本的 OCL。文档 here .

关于ubuntu - pyopencl 错误 : undefined symbol: clCreateSubDevices,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21215024/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com