Как настроить OpenCL в Debian ?

 , , ,



Читал такое:

the r600g driver still have to load proprietary microcode into the GPU to enable hardware acceleration. This firmware is usually included in the kernel, but is packaged separately in Debian.

apt-show-versions firmware-linux-nonfree
firmware-linux-nonfree:all/sid 0.40 uptodate
apt-show-versions firmware-linux
firmware-linux:all/sid 0.40 uptodate

uname -v
#1 SMP PREEMPT RT Debian 3.12.8-1 (2014-01-19)

grep DRM_RADEON /boot/config-$(uname -r)
grep AGP /boot/config-$(uname -r)

apt-show-versions xorg
xorg:amd64/sid 1:7.7+5 uptodate

You most certainly are using wheezy's xserver-xorg-core which does not provide xorg-video-abi-6.0 any more, and radeonhd is not available for the newer xorg-video-abi because it has been removed from Debian

# apt-show-versions xserver-xorg-video-radeon
xserver-xorg-video-radeon:amd64/sid 1:7.3.0-1 uptodate if mesa provides an OpenCL implementation, it needs to do it by providing an ICD, and not the library. The must be a ICD Loader in order to allow the co-installation of several OpenCL implementations. There exists several implementation for the ICD Loader. There even is ocl-icd packaged in main that is a free implementation...

in upstream git (which will sooner or later become Mesa 10.0), there now is OpenCL ICD support.

$ glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD RV770
OpenGL core profile version string: 3.1 (Core Profile) Mesa 10.1.0-devel (git-81144c0 saucy-oibaf-ppa+curaga)
OpenGL core profile shading language version string: 1.40
OpenGL core profile context flags: (none)
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.1.0-devel (git-81144c0 saucy-oibaf-ppa+curaga)
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:

apt-get install libclc-r600
apt-show-versions libclc-r600
libclc-r600:all/saucy 0~git20140101-1~gd~s uptodate

apt-show-versions ocl-icd-libopencl1
ocl-icd-libopencl1:amd64/sid 2.1.3-2 uptodate

Проблемы такие:

при запуске прикладной программы выдаётся сообщение:

The error code values are defined in opencl.h It look like your platform is not configured properly. CL_PLATFORM_NOT_FOUND_KHR (-1001) error from clGetPlatformIDs. That's because you do have the dispatcher, but no actual OpenCL drivers.

сейчас так:
cat /etc/OpenCL/vendors/mesa.icd

и вот файла нет.

как бы мне донастроить OpenCL?

у меня даже в арче не заработало, не стал разбираться и вернул назад блоб

Radius ★★★★ ()
Ответ на: комментарий от anonymous

Патрик, поубивай их всех.

файл я нашел, нужно было установить
sudo apt-get install libopencl1-mesa

$ find / -iname «*» 2>/dev/null

теперь выдаёт ошибку:
fatal error: cannot open file '/usr/lib/clc/rv770-r600--.bc': No such file or directory

terradot ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.