Dear, I’m trying to run my OpenCL snap app (installed using --devmode
) with the proprietary AMDGPU-Pro driver.
- I expected it to work immediately (
--devmode
: a similar way to traditional .deb packages). But it doesn’t. - I can make it work. Just running:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/lib/snapd/hostfs/opt/amdgpu-pro/lib/x86_64-linux-gnu/:/var/lib/snapd/hostfs/opt/amdgpu/lib/x86_64-linux-gnu/
- So, I created inside snapcraft.yaml the workaround seen below (but this is not allowed):
layout:
/opt/amdgpu-pro:
bind: /var/lib/snapd/hostfs/opt/amdgpu-pro
/opt/amdgpu:
bind: /var/lib/snapd/hostfs/opt/amdgpu
Do you guys have any advice? I mean, a regular user can understand that to access OpenCL using proprietary drivers he/she needs to skip the sandboxing for a while. But even that is not working.
Just to be clear, HPC using OpenCL requires proprietary drivers. I saw you are working on NVIDIA support. AMD does not deserve much attention, but, a workaround is a possiblility
Please, move to a new topic if that makes sense.