Luxcore with CUDA
Posted: Fri Apr 14, 2023 12:19 pm
Hi Guys,
I'm using Luxcore via API (no Blender).
Luxcore detects my GPU:
opencl.device.0.platform.name = "NVIDIA Corporation"
opencl.device.0.platform.version = "OpenCL 1.2 CUDA"
opencl.device.0.name = "A10G"
opencl.device.0.type = "OPENCL_GPU"
opencl.device.0.units = 80
opencl.device.0.clock = 1710
opencl.device.0.nativevectorwidthfloat = 1
opencl.device.0.maxmemory = 23836098560
opencl.device.0.maxmemoryallocsize = 5959024640
opencl.device.0.localmemory = 49152
opencl.device.0.constmemory = 65536
but some reason does not use it. I looks that CUDA is disabled:
compile.LUXRAYS_DISABLE_OPENCL = 0
compile.LUXRAYS_ENABLE_OPENCL = 1
compile.LUXRAYS_DISABLE_CUDA = 1
compile.LUXRAYS_ENABLE_CUDA = 0
compile.LUXRAYS_ENABLE_OPTIX = 0
compile.LUXCORE_ENABLE_OIDN = 1
compile.LUXCORE_DISABLE_OIDN = 0
compile.LUXCORE_DISABLE_EMBREE_BVH_BUILDER = 0
compile.LC_MESH_MAX_DATA_COUNT = 8
When I create render session I get an error:
Error creating render session
No hardware device selected or available
I'm not sure about opencl.devices.select variable.
Should it be "1"?
I'm using Luxcore via API (no Blender).
Luxcore detects my GPU:
opencl.device.0.platform.name = "NVIDIA Corporation"
opencl.device.0.platform.version = "OpenCL 1.2 CUDA"
opencl.device.0.name = "A10G"
opencl.device.0.type = "OPENCL_GPU"
opencl.device.0.units = 80
opencl.device.0.clock = 1710
opencl.device.0.nativevectorwidthfloat = 1
opencl.device.0.maxmemory = 23836098560
opencl.device.0.maxmemoryallocsize = 5959024640
opencl.device.0.localmemory = 49152
opencl.device.0.constmemory = 65536
but some reason does not use it. I looks that CUDA is disabled:
compile.LUXRAYS_DISABLE_OPENCL = 0
compile.LUXRAYS_ENABLE_OPENCL = 1
compile.LUXRAYS_DISABLE_CUDA = 1
compile.LUXRAYS_ENABLE_CUDA = 0
compile.LUXRAYS_ENABLE_OPTIX = 0
compile.LUXCORE_ENABLE_OIDN = 1
compile.LUXCORE_DISABLE_OIDN = 0
compile.LUXCORE_DISABLE_EMBREE_BVH_BUILDER = 0
compile.LC_MESH_MAX_DATA_COUNT = 8
When I create render session I get an error:
Error creating render session
No hardware device selected or available
I'm not sure about opencl.devices.select variable.
Should it be "1"?