You are not logged in.

#1 2016-04-25 23:54:53

lighthearted
Member
Registered: 2016-04-07
Posts: 9

Attempting to use OpenCL with Nvidia

I have an Nvidia Quadro 400 GPU. In order to use OpenCL, I installed the following packages:

nvidia-340xx
nvidia-340xx-libgl
nvidia-340xx-utils
opencl-nvidia-340xx
ocl-icd
opencl-headers
pyopencl-headers
python-pyopencl

When I execute

import pyopencl

in Python, I get the following error:

ImportError: /usr/lib/python3.5/site-packages/pyopencl/_cffi.cpython-35m-x86_64-linux-gnu.so: symbol clCompileProgram, version OPENCL_1.2 not defined in file libOpenCL.so.1 with link time reference

Am I missing some steps? Is there a more direct way to test whether OpenCL is working or not?

Last edited by lighthearted (2016-04-25 23:58:28)

Offline

#2 2016-04-26 13:05:24

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Attempting to use OpenCL with Nvidia

[1] indicates the quadro 400 may only support openCL 1.0 , you could try installing [2]and use clinfo .


[1] https://devtalk.nvidia.com/default/topi … t/3618682/
[2] https://aur.archlinux.org/packages/amdapp-sdk/


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB