Building against ffmpeg with opencl

Jan Palus jan.palus at gmail.com
Sat Jul 26 16:18:51 CEST 2014


On 26.07.2014 15:48, Jan Palus wrote:
> On 26.07.2014 15:29, Jakub Bogusz wrote:
> > (Side note: Mesa libOpenCL doesn't provide @OPENCL_1.0 versioning, AMD's
> > (fglrx) IIRC does).
> > 
> > Use ocl-icd libOpenCL, which redirects calls to selected target library
> > (every implementation should provide a file in /etc/OpenCL/vendors dir).
> 
> That fixed compilation indeed thanks, but is this ocl-icd preferred solution
> now?  Instead of providing custom ld.so.conf should nvidia libs require
> ocl-icd-libOpenCL along with ocl-icd vendor config?
> 
> While compilation was fixed, it seems mpv is unable to start, probably
> due to failed opencl initialization in ffmpeg. Any ideas?
> 
> % mpv
> X server found. dri2 connection failed! 
> Trying to open render node...
> open("/dev/dri/renderD128", O_RDWR) failed: No such file or directory

ok found the issue with OCL_ICD_DEBUG=2 - it turned out I had beignet
package installed which provides ocl-icd vendor file. Is there any way
to choose preferred vendor instead of running into such issues when one
only wants to play a movie?


More information about the pld-devel-en mailing list