Xpra: Ticket #2489: nvenc: no compatible devices found when compatible devices present

Xpra 4.0-r24434 fails to find available devices for nvenc that are detected under 3.0.2.



Thu, 21 Nov 2019 07:41:55 GMT - mjlbach: attachment set

:4.log


Thu, 21 Nov 2019 07:42:09 GMT - mjlbach: attachment set

loader.py output


Thu, 21 Nov 2019 07:42:21 GMT - mjlbach: attachment set

nv_util.py.log


Thu, 21 Nov 2019 07:42:38 GMT - mjlbach: attachment set

video_helper.py log


Thu, 21 Nov 2019 07:43:01 GMT - mjlbach: component changed


Thu, 21 Nov 2019 07:44:19 GMT - Antoine Martin: status changed

Very likely to have been caused by #2416.


Fri, 29 Nov 2019 10:45:40 GMT - Antoine Martin: owner, status changed

Summary from the logs:

But no devices:

CUDA initialization (this may take a few seconds)
nvenc: no compatible devices found
NVidia driver version 430.50

Fixes:

With these changes, my card does show up as it should:

$ python3 ./xpra/codecs/cuda_common/cuda_context.py
CUDA initialization (this may take a few seconds)
CUDA 10.0.0 / PyCUDA 2019.1.2, found 1 device:
  + GeForce GTX 1070 @ 0000:01:00.0 (memory: 85% free, compute: 6.1)
pycuda_info
* version                         : 2019.1.2
  - text                          : 2019.1.2
cuda_info
* driver
  - driver_version                : 10020
  - version                       : 10.0.0
preferences:
* disabled-devices                : none
* enabled-devices                 : all
* load-balancing                  : memory
device automatically selected:
 GeForce GTX 1070 @ 0000:01:00.0

@mjlbach: there are updated beta builds with these fixes, please close if those work for you.


Fri, 29 Nov 2019 17:13:28 GMT - mjlbach: status changed; resolution set

Resolved! Tested on Fedora 31 and Ubuntu 18.04


Sat, 23 Jan 2021 05:52:41 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2489