LINUX.ORG.RU

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

 , , ,


0

1

Читал такое:
http://en.wikipedia.org/wiki/Graphics_hardware_and_FOSS#ATI.2FAMD
https://wiki.debian.org/ru/AtiHowTo

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)
CONFIG_DRM_RADEON=m
# CONFIG_DRM_RADEON_UMS is not set
grep AGP /boot/config-$(uname -r)
CONFIG_AGP=y
CONFIG_AGP_AMD64=y
CONFIG_AGP_INTEL=y
CONFIG_AGP_SIS=y
CONFIG_AGP_VIA=y

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

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717500 if mesa provides an OpenCL implementation, it needs to do it by providing an ICD, and not the libOpenCL.so.1 library. The libOpenCL.so.1 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

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

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

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
libMesaOpenCL.so

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

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

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

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

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

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

$ find / -iname «libMesaOpenCL.so*» 2>/dev/null
/usr/lib/x86_64-linux-gnu/libMesaOpenCL.so
/usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1.0.0
/usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1

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

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