I have an XPS15 9550 with optimus graphics. I'm trying to get SVP working with optirun. I have nvidia-387, bumblebee, bumblebee-nvidia, primus, nvidia-opencl-icd-387, and nvidia-modprobe for nvidia opencl, and beignet-opencl-icd for intel opencl.
clinfo shows: Intel(R) HD Graphics Skylake Halo GT2.
optirun clinfo shows both Intel(R) HD Graphics Skylake Halo GT2 ... GeForce GTX 960M ... Device Version OpenCL 1.2 CUDA
I have run luxmark with and without optirun, and it behaves as expceted, both igpu and dgpu show up and work with optirun, so opencl appears to be set up correctly for both GPUs.
If I run SVPManager, Intel(R) HD Graphics Skylake Halo GT2 is detected, but when I assess system performance, it fails on the intel gpu with:
20:47:26.975 [W]: Video [gpuID=11] initialization failed
20:47:26.975 [W]: Performance: GPU-based frame rendering [gpuID=11] FAILED
and videos seem to default to cpu rendering when the intel gpu is selected, because cpu use is ~75% when I select the intel gpu and when I select cpu rendering.
I had to add "alias nvidia-uvm nvidia-387-uvm" to /etc/modprobe.d/bumblebee.conf to get the 960M to show up at all in svp with "optirun SVPManager".
If i run optimus SVPManager both Intel(R) HD Graphics Skylake Halo GT2 and GeForce GTX 960M are found, and assess system performance works for the 960M, but playing videos with mpv defaults to cpu rendering yet again and the log file shows:
04:20:51.153 [i]: Playback [f8c72de1]: playing at 59.94 [23.976 *5/2]
04:20:51.331 [E]: Playback [f8c72de1]: VS - Script evaluation failed:
04:20:51.331 [E]: Playback [f8c72de1]: VS - Python exception: SVSmoothFps: unable to init GPU-based renderer - code 65536
04:20:51.332 [E]: Playback [f8c72de1]: VS - Traceback (most recent call last):
04:20:51.332 [E]: Playback [f8c72de1]: VS - File 'src/cython/vapoursynth.pyx', line 1810, in vapoursynth.vpy_evaluateScript (src/cython/vapoursynth.c:36455)
04:20:51.332 [E]: Playback [f8c72de1]: VS - File '/home/cake/.local/share/SVP4/scripts/f8c72de1.py', line 53, in <module>
04:20:51.332 [E]: Playback [f8c72de1]: VS - smooth = interpolate(clip)
04:20:51.332 [E]: Playback [f8c72de1]: VS - File '/home/cake/.local/share/SVP4/scripts/f8c72de1.py', line 36, in interpolate
04:20:51.332 [E]: Playback [f8c72de1]: VS - smooth = core.svp2.SmoothFps(input_m,super['clip'],super['data'],vectors['clip'],vectors['data'],smoothfps_params,src=input_um,fps=src_fps)
04:20:51.332 [E]: Playback [f8c72de1]: VS - File 'src/cython/vapoursynth.pyx', line 1702, in vapoursynth.Function.__call__ (src/cython/vapoursynth.c:34595)
04:20:51.332 [E]: Playback [f8c72de1]: VS - vapoursynth.Error: SVSmoothFps: unable to init GPU-based renderer - code 65536
04:20:51.381 [E]: Playback [f8c72de1]: VS - Script evaluation failed:
04:20:51.381 [E]: Playback [f8c72de1]: VS - Python exception: SVSmoothFps: unable to init GPU-based renderer - code 65536
04:20:51.381 [E]: Playback [f8c72de1]: VS - Traceback (most recent call last):
04:20:51.381 [E]: Playback [f8c72de1]: VS - File 'src/cython/vapoursynth.pyx', line 1810, in vapoursynth.vpy_evaluateScript (src/cython/vapoursynth.c:36455)
04:20:51.381 [E]: Playback [f8c72de1]: VS - File '/home/cake/.local/share/SVP4/scripts/f8c72de1.py', line 53, in <module>
04:20:51.381 [E]: Playback [f8c72de1]: VS - smooth = interpolate(clip)
04:20:51.381 [E]: Playback [f8c72de1]: VS - File '/home/cake/.local/share/SVP4/scripts/f8c72de1.py', line 36, in interpolate
04:20:51.381 [E]: Playback [f8c72de1]: VS - smooth = core.svp2.SmoothFps(input_m,super['clip'],super['data'],vectors['clip'],vectors['data'],smoothfps_params,src=input_um,fps=src_fps)
04:20:51.382 [E]: Playback [f8c72de1]: VS - File 'src/cython/vapoursynth.pyx', line 1702, in vapoursynth.Function.__call__ (src/cython/vapoursynth.c:34595)
04:20:51.382 [E]: Playback [f8c72de1]: VS - vapoursynth.Error: SVSmoothFps: unable to init GPU-based renderer - code 65536
So I'm unable to get either GPU working with SVP. I wonder if vapoursynth is being run somehow without being under 'optirun' and thus it can't find the nvidia opencl device? I have no idea what could be wrong with the intel gpu.