Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Falling back to CPU lightmapper

Discussion in 'Global Illumination' started by agus_r, Jun 29, 2022.

  1. agus_r

    agus_r

    Joined:
    Oct 8, 2020
    Posts:
    15
    I am having trouble with the lighting baking, it seems to me that my laptop is lacking a specific package that deals with the OpenCL implementation in Nvidia. So whenever I want to bake the illumination, this message appears:

    Failed to find a suitable OpenCL device for the GPU Lightmapper. Please change your lightmapper or install the latest graphics driver.


    I use Manjaro Linux, and my laptop gpu is a RTX 3060 mobile, I use the latest driver. Of course this works in Windows because the driver installation already includes any OpenCL or CUDA package, but that doesn't seem to be the case for Linux, there is a separate package for every thing. It also looks like this doesn't happen with Amd gpus thanks to the open source drivers. My desktop has an AMD gpu, the same OS and this was never an issue.


    It is not clear to me which package I should install, I don't want to mess around installing every package with "opencl" or "nvidia" in their name (I already tried some without any luck). I searched in the forums and I couldn't find any solution, this seems to be a rather rare configuration: Arch-derived OS + Unity + Nvidia gpu.
     
  2. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    Please try and install the OpenCL driver as explained here #1:
    Code (CSharp):
    1. sudo apt install clinfo ocl-icd-opencl-dev opencl-headers
     
  3. agus_r

    agus_r

    Joined:
    Oct 8, 2020
    Posts:
    15
    Thank you, this seems to be working
     
    KEngelstoft likes this.