Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2020.1.X
Votes
2
Found in
Issue ID
1263018
Regression
Yes
[GPU PLM] GPU lightmapper doesn't work on Linux any more
Steps to reproduce:
1) Download, unzip and open the case 1263018 New Unity Project 19.4 upgrade.zip project that uses GPU lightmapper.
2) Start a lighting bake.
3) Observe the error:
2020.1.0a20 fail with: Failed to find a suitable OpenCL device for the GPU Lightmapper, falling back to CPU lightmapper. Please install the latest graphics driver.
Later versions fail with: [PathTracer] Failed to add geometry for mesh 'Cube'; mesh is missing required attribute(s). Please make sure the mesh contains at least positions, normals and texcoord0.
Tested using Ubuntu 18.4 with Nvidia driver version 440 (latest recommended driver on Ubuntu). I have tried both 1050Ti and 1080Ti with same result. Same on the 395 driver.
The CreateRRAPIFromOpenClContext function is found in the dynamic library and its input parameters look valid but calling it fails.
Works in these versions:
2019.1.14f1 148b5891095a
2019.4.3f1 f880dceab6fe
2020.1.0a7 d3d2f5b1d33e
2020.1.0a14 2a3307d3869b
2020.1.0a17 ccc6f9131a63
2020.1.0a19 6995b659db2e
Broken in these versions (Failed to find a suitable OpenCL device for the GPU Lightmapper, falling back to CPU lightmapper. Please install the latest graphics driver.):
2020.1.0a20 019325219793
2020.1.0a21 4ea9a24ebde1
2020.1.0b2 14d43bf8b596
The regression was introduced by https://ono.unity3d.com/unity/unity/pull-request/99082/_/platform/linux/opencl-cleanup.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Red spots appear when Blending Lighting Scenarios using Adaptive Probe Volumes
- [Windows] About Unity Window needs to be opened twice to adapt to resolution
- NullReferenceException and temporary graph corruption after entering playmode if output node connection was changed
- Sprite Renderer with Animation does not reflect Sprite changes in the Scene when switching Mask Interaction
- User is redirected to a non-existing online documentation link when clicking on "?" help button inside Inspector window while Animator Override Controller is selected
ebaender
Apr 22, 2021 08:53
In case anyone else is still having problems with this on Arch, try using opencl-amd from the AUR instead of opencl-mesa.
codeviki
Jan 31, 2021 22:17
I was able to resolved the issue for Arch Linux Xfce, I installed all possible dependencies for nvidia support. Search google for GPGPU arch linux and make sure you have all the packages and dependencies installed. Changes might only be visible once you reboot. So be sure to reboot.
codeviki
Jan 31, 2021 17:33
Hello,
I still seems to be getting this error in 2020.2.2f1
Arch Linux
All possible libs installed, not sure how to get this working
Failed to find a suitable OpenCL device for the GPU Lightmapper, falling back to CPU lightmapper. Please install the latest graphics driver.
Any help appreciated, I am using nVidia GTX1060
Seb_K
Dec 10, 2020 17:16
@MARIUSILOVECSGO21
It worked for me to !
Thank you !
bricefr
Oct 02, 2020 06:24
On Manjaro (Arch-based), I did install those extensions for OpenCL support on AMD card:
- opencl-mesa
- rocm-opencl-runtime
I don't know if both are necessary tho...
Then on Unity 2020.1.7f1, I have two entries for the GPU in the lightmapped:
- Vega 10 XL
- Radeon RX Vega
I selected the first one and it works (with the second one, the lightmapping process stops after a few seconds and switches on the CPU).
Hope this helps.
hunabku94
Sep 29, 2020 04:47
So after tests i can confirm Archlinux users you need to :
- use mainline linux kernel : linux linux-headers
- install xf86-video-amdgpu opencl-mesa lib32-opencl-mesa opencl-nvidia-vulkan lib32-opencl-nvidia-vulkan
hunabku94
Sep 29, 2020 04:33
I don't know why works on blender but not in Unity with linux-zen kernel, but BACK TO MAINLINE LINUX KERNEL SOLVETHE PROBLEM for me.
hunabku94
Sep 29, 2020 04:20
Just a small clarification :
OpenCL works in Blender, not in Unity
hunabku94
Sep 29, 2020 04:18
The problem persists for me :
Unity : 2020.1.6
OS : Archlinux
Graphic Card : AMD Radeon RX 5500 XT
Driver : amdgpu
OpenCL : opencl-amd opencl-headers opencl-mesa opencl-nvidia-vulkan lib32-opencl-mesa lib32-opencl-nvidia-vulkan lib32-ocl-icd lib32-ocl-icd
mariusilovecsgo21
Aug 25, 2020 11:38
If you are on ubuntu try this.
sudo apt install nvidia-opencl-dev
It worked for me.