Problems with CUDA in recent versions
Posted: Wed Dec 09, 2020 4:32 pm
I can't use recent daily LuxCore builds due to CUDA errors:
I tried to build from source with flag for disabling CUDA and leaving only OpenCL enabled, but even though CUDA is disabled, I still get an error:
Update:
I built it without OpenCL and CUDA, but Blender addon still fails to run:
I have an older GPU and want to use only CPU for rendering, but LuxCore in Blender crashes with this error immediately upon initialization.reloading addon: BlendLuxCore 1607237575.4292386 1607529090.1397486 '/home/1/.config/blender/2.91/scripts/addons/BlendLuxCore/__init__.py'
Modules Installed () from '/home/1/lux_builds/2.5_b1/BlendLuxCore-latest-linux64.zip' into '/home/1/.config/blender/2.91/scripts/addons'
Exception in module register(): /home/1/.config/blender/2.91/scripts/addons/BlendLuxCore/__init__.py
Traceback (most recent call last):
File "/home/1/blender/blender-2.91.0-linux64/2.91/scripts/modules/addon_utils.py", line 382, in enable
mod.register()
File "/home/1/.config/blender/2.91/scripts/addons/BlendLuxCore/__init__.py", line 93, in register
pyluxcore.Init(LuxCoreLog.add)
RuntimeError: CUDA driver API error CUDA_ERROR_UNKNOWN (code: 999, file:/home/vsts/work/1/s/LinuxCompile/LuxCore/src/luxrays/core/init.cpp, line: 71): unknown error
I tried to build from source with flag for disabling CUDA and leaving only OpenCL enabled, but even though CUDA is disabled, I still get an error:
Is it possible to build LuxCore for OpenCL only, or even better, for the CPU only?[ 52%] Building CXX object src/slg/CMakeFiles/slg-core.dir/engines/oclrenderengine.cpp.o
/home/1/lux_builds/src/LuxCore-latest/src/slg/engines/oclrenderengine.cpp: In constructor ‘slg::OCLRenderEngine::OCLRenderEngine(const slg::RenderConfig*, bool)’:
/home/1/lux_builds/src/LuxCore-latest/src/slg/engines/oclrenderengine.cpp:128:5: error: ‘CUDADeviceDescription’ was not declared in this scope
128 | CUDADeviceDescription *cudaDesc = (CUDADeviceDescription *)desc;
| ^~~~~~~~~~~~~~~~~~~~~
/home/1/lux_builds/src/LuxCore-latest/src/slg/engines/oclrenderengine.cpp:128:28: error: ‘cudaDesc’ was not declared in this scope; did you mean ‘cudaDescs’?
128 | CUDADeviceDescription *cudaDesc = (CUDADeviceDescription *)desc;
| ^~~~~~~~
| cudaDescs
/home/1/lux_builds/src/LuxCore-latest/src/slg/engines/oclrenderengine.cpp:128:63: error: expected primary-expression before ‘)’ token
128 | CUDADeviceDescription *cudaDesc = (CUDADeviceDescription *)desc;
| ^
make[2]: *** [src/slg/CMakeFiles/slg-core.dir/build.make:290: src/slg/CMakeFiles/slg-core.dir/engines/oclrenderengine.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:466: src/slg/CMakeFiles/slg-core.dir/all] Error 2
make: *** [Makefile:103: all] Error 2
Update:
I built it without OpenCL and CUDA, but Blender addon still fails to run:
Could not import pyluxcore.
ImportError: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2: cannot allocate memory in static TLS block