Black Image rendering on GPU

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Post Reply
netlinker
Posts: 4
Joined: Tue Feb 04, 2020 1:01 pm

Black Image rendering on GPU

Post by netlinker »

Hi,

I have a problem with my Blender Luxcore setup (blendluxcore 2.2 blender 2.79).
Every time I try to render a scene with amd gpu support, it crashed the first time and renders a black image from there on even if I set the render to CPU only.
I have the unusual setup of a AMD FirePro V4800 and a Nvidia gtx1080.
It seems like the kernel compile for the AMD crashes and ruines some settings from which blender does not recover.
Even if i start with a blank new scene this Problem stays persistently. The only way to get rid of it is to reset Blender to default settings and scene.
When I do so, the renderer is working (cpu and nvidia) as long as I don't use the amd card for rendering or load any old file that used the amd card.

The Problem is now that I have setup a quite complex scene which is now only rendering black images.

Any ideas how to rescue the scene?

Initial crash using AMD:

Code: Select all

[LuxCore][33.744] Compile Geometry
[LuxCore][33.744] Scene geometry compilation time: 0ms
[LuxCore][33.744] Compile 1 Textures
[LuxCore][33.744] Textures compilation time: 0ms
[LuxCore][33.744] Compile 1 Materials
[LuxCore][33.744] Material compilation time: 0ms
[LuxCore][33.744] Compile Lights
[LuxCore][33.745] Lights compilation time: 0ms
[LuxCore][33.745] Compile ImageMaps
[LuxCore][33.745] Image maps page(s) count: 0
[LuxCore][33.745] Image maps compilation time: 0ms
[LuxCore][33.745] Starting 2 OpenCL render threads
[LuxRays][33.760] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] RADIANCE_PER_PIXEL_NORMALIZEDs[0] buffer size: 10194Kbytes
[LuxRays][33.760] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] ALBEDO buffer size: 10194Kbytes
[LuxRays][33.760] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] AVG_SHADING_NORMAL buffer size: 10194Kbytes
[LuxRays][33.772] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] RADIANCE_PER_PIXEL_NORMALIZEDs[0] buffer size: 10194Kbytes
[LuxRays][33.772] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Camera buffer size: 5448bytes
[LuxRays][33.772] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Normals buffer size: 288bytes
[LuxRays][33.772] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Vertices buffer size: 288bytes
[LuxRays][33.772] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Triangles buffer size: 144bytes
[LuxRays][33.772] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Mesh description buffer size: 156bytes
[LuxRays][33.772] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Textures buffer size: 272bytes
[LuxRays][33.772] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Materials buffer size: 148bytes
[LuxRays][33.772] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Scene objects buffer size: 12bytes
[LuxRays][33.772] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Lights buffer size: 664bytes
[LuxRays][33.772] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Env. light indices buffer size: 4bytes
[LuxRays][33.772] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Light offsets (Part I) buffer size: 4bytes
[LuxRays][33.772] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Env. light distributions buffer size: 1028Kbytes
[LuxRays][33.773] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] LightsDistribution buffer size: 24bytes
[LuxRays][33.773] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] InfiniteLightSourcesDistribution buffer size: 24bytes
[LuxRays][33.773] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Ray buffer size: 30720Kbytes
[LuxRays][33.773] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] RayHit buffer size: 12800Kbytes
[LuxCore][33.773] [PathOCLBaseRenderThread::0] Size of a GPUTask: 488bytes
[LuxRays][33.773] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) I
ntersect] GPUTask buffer size: 312320Kbytes
[LuxCore][33.773] [PathOCLBaseRenderThread::0] Size of a GPUTask DirectLight: 100bytes
[LuxRays][33.773] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] GPUTaskDirectLight buffer size: 64000Kbytes
[LuxCore][33.773] [PathOCLBaseRenderThread::0] Size of a GPUTask State: 316bytes
[LuxRays][33.773] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] GPUTaskState buffer size: 202240Kbytes
[LuxRays][33.773] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] GPUTask Stats buffer size: 2560Kbytes
[LuxCore][33.773] [PathOCLBaseRenderThread::0] Size of a Sample: 88bytes
[LuxRays][33.773] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Sample buffer size: 56320Kbytes
[LuxCore][33.773] [PathOCLBaseRenderThread::0] Sample dimensions: 69
[LuxCore][33.773] [PathOCLBaseRenderThread::0] Size of a SampleData: 8bytes
[LuxRays][33.773] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] SampleData buffer size: 5120Kbytes
[LuxRays][33.773] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] PathVolumeInfo buffer size: 28160Kbytes
[LuxRays][33.773] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] DirectLightVolumeInfo buffer size: 28160Kbytes
[LuxRays][33.773] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Pixel Filter Distribution buffer size: 33Kbytes
[LuxCore][33.776] [PathOCLBaseRenderThread::0] Defined symbols:  -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL -D RENDER_ENGINE_RTPATHOCL -D PARAM_RAY_EPSILON_MIN=1.000000e-05f -D PARAM_RAY_EPSILON_MAX=1.000000e-01f -D PARAM_LIGHT_WORLD_RADIUS_SCALE=1.050000e+00f -D PARAM_ACCEL_MBVH -D PARAM_FILM_RADIANCE_GROUP_0 -D PARAM_FILM_RADIANCE_GROUP_COUNT=1 -D PARAM_FILM_CHANNELS_HAS_ALBEDO -D PARAM_FILM_CHANNELS_HAS_AVG_SHADING_NORMAL -D PARAM_ENABLE_TEX_CONST_FLOAT -D PARAM_ENABLE_TEX_CONST_FLOAT3 -D PARAM_ENABLE_TEX_IMAGEMAP -D PARAM_ENABLE_TEX_NORMALMAP -D PARAM_ENABLE_TEX_FRESNELCOLOR -D PARAM_ENABLE_TEX_FRESNELCONST -D PARAM_ENABLE_MAT_MATTE -D PARAM_ENABLE_MAT_ROUGHMATTE -D PARAM_ENABLE_MAT_MIRROR -D PARAM_ENABLE_MAT_GLASS -D PARAM_ENABLE_MAT_ARCHGLASS -D PARAM_ENABLE_MAT_NULL -D PARAM_ENABLE_MAT_MATTETRANSLUCENT -D PARAM_ENABLE_MAT_ROUGHMATTETRANSLUCENT -D PARAM_ENABLE_MAT_GLOSSY2 -D PARAM_ENABLE_MAT_GLOSSY2_ABSORPTION -D PARAM_ENABLE_MAT_GLOSSY2_MULTIBOUNCE -D PARAM_ENABLE_MAT_METAL2 -D PARAM_ENABLE_MAT_ROUGHGLASS -D PARAM_ENABLE_MAT_CLEAR_VOL -D PARAM_ENABLE_MAT_HOMOGENEOUS_VOL -D PARAM_ENABLE_MAT_GLOSSYTRANSLUCENT -D PARAM_HAS_PASSTHROUGH -D PARAM_CAMERA_TYPE=0 -D PARAM_HAS_INFINITELIGHT -D PARAM_HAS_CONSTANTINFINITELIGHT -D PARAM_HAS_SKYLIGHT2 -D PARAM_HAS_SUNLIGHT -D PARAM_HAS_SHARPDISTANTLIGHT -D PARAM_HAS_DISTANTLIGHT -D PARAM_HAS_POINTLIGHT -D PARAM_HAS_MAPPOINTLIGHT -D PARAM_HAS_SPOTLIGHT -D PARAM_HAS_PROJECTIONLIGHT -D PARAM_HAS_LASERLIGHT -D PARAM_HAS_TRIANGLELIGHT -D PARAM_HAS_SPHERELIGHT -D PARAM_HAS_MAPSPHERELIGHT -D PARAM_HAS_ENVLIGHTS -D PARAM_HAS_BUMPMAPS -D PARAM_HAS_VOLUMES -D SCENE_DEFAULT_VOLUME_INDEX=4294967295 -D PARAM_MAX_PATH_DEPTH=7 -D PARAM_MAX_PATH_DEPTH_DIFFUSE=5 -D PARAM_MAX_PATH_DEPTH_GLOSSY=5 -D PARAM_MAX_PATH_DEPTH_SPECULAR=6 -D PARAM_RR_DEPTH=3 -D PARAM_RR_CAP=5.000000e-01f -D PARAM_SQRT_VARIANCE_CLAMP_MAX_VALUE=0.000000e+00f -D PARAM_IMAGE_FILTER_TYPE=5 -D PARAM_IMAGE_FILTER_WIDTH_X=1.500000e+00f -D PARAM_IMAGE_FILTER_WIDTH_Y=1.500000e+00f -D PARAM_IMAGE_FILTER_PIXEL_WIDTH_X=1 -D PARAM_IMAGE_FILTER_PIXEL_WIDTH_Y=1 -D PARAM_USE_PIXEL_ATOMICS -D PARAM_SAMPLER_TYPE=3 -D PARAM_RTPATHOCL_PREVIEW_RESOLUTION_REDUCTION=4 -D PARAM_RTPATHOCL_PREVIEW_RESOLUTION_R
EDUCTION_STEP=8 -D PARAM_RTPATHOCL_RESOLUTION_REDUCTION=1 -D LUXCORE_GENERIC_OPENCL
[LuxCore][33.776] [PathOCLBaseRenderThread::0] Compiling kernels 
LLVM ERROR: Cannot select: 0x7f64085e6dd0: i32,ch = AtomicCmpSwap<(volatile load store seq_cst seq_cst 4 on %ir.204, addrspace 1)> 0x7f63723c2888:1, 0x7f63a65eaf70, 0x7f63723c2888, 0x7f63723c25b0
  0x7f63a65eaf70: i32,ch = CopyFromReg 0x7f6377fc13d8, Register:i32 %35
    0x7f63a65eaaf8: i32 = Register %35
  0x7f63723c2888: i32,ch = load<(load 4 from %ir.arrayidx3.i.i127.i, !tbaa !15, addrspace 1)> 0x7f6377fc13d8, 0x7f63a65eaf70, undef:i32
    0x7f63a65eaf70: i32,ch = CopyFromReg 0x7f6377fc13d8, Register:i32 %35
      0x7f63a65eaaf8: i32 = Register %35
    0x7f63f89d9f70: i32 = undef
  0x7f63723c25b0: i32 = bitcast 0x7f640c345d00
    0x7f640c345d00: f32 = fadd 0x7f637ab96410, 0x7f637ab96000
      0x7f637ab96410: f32,ch = CopyFromReg 0x7f6377fc13d8, Register:f32 %36
        0x7f6425a4b410: f32 = Register %36
      0x7f637ab96000: f32 = bitcast 0x7f63723c2888
        0x7f63723c2888: i32,ch = load<(load 4 from %ir.arrayidx3.i.i127.i, !tbaa !15, addrspace 1)> 0x7f6377fc13d8, 0x7f63a65eaf70, undef:i32
          0x7f63a65eaf70: i32,ch = CopyFromReg 0x7f6377fc13d8, Register:i32 %35
            0x7f63a65eaaf8: i32 = Register %35
          0x7f63f89d9f70: i32 = undef
In function: AdvancePaths_MK_SPLAT_SAMPLE

Render with AMD deselected -> black image:

Code: Select all

[Engine/Final] Rendering layer "RenderLayer"
[Exporter] Creating session
[SDL][222.670] Camera type: perspective
[SDL][222.670] Camera position: Point[7.48113, -6.50764, 5.34367]
[SDL][222.670] Camera target: Point[6.82957, -5.89347, 4.89839]
[SDL][222.670] Camera clipping plane disabled
WARNING: Material "Material": Missing node tree
[SDL][222.673] Material definition: Surface_Material_140347587718664
[SDL][222.673] Scene objects count: 1
[SDL][222.673] Light definition: Lamp_Lamp_140347587717128
[SDL][222.673] Light definition: __WORLD_BACKGROUND_LIGHT__
[LuxCore][222.711] Configuration: 
[LuxCore][222.711]   path.pathdepth.total = 7
[LuxCore][222.711]   path.pathdepth.diffuse = 5
[LuxCore][222.711]   path.pathdepth.glossy = 5
[LuxCore][222.711]   path.pathdepth.specular = 6
[LuxCore][222.711]   path.hybridbackforward.enable = 0
[LuxCore][222.712]   path.hybridbackforward.partition = 0
[LuxCore][222.712]   path.hybridbackforward.glossinessthreshold = 0.048999998718500137
[LuxCore][222.712]   opencl.cpu.use = 0
[LuxCore][222.712]   opencl.gpu.use = 1
[LuxCore][222.712]   opencl.devices.select = "001"
[LuxCore][222.712]   film.noiseestimation.warmup = 8
[LuxCore][222.712]   film.noiseestimation.step = 32
[LuxCore][222.712]   sampler.sobol.adaptive.strength = 0.94999998807907104
[LuxCore][222.712]   sampler.random.adaptive.strength = 0.94999998807907104
[LuxCore][222.712]   sampler.metropolis.largesteprate = 0.40000000000000002
[LuxCore][222.712]   sampler.metropolis.maxconsecutivereject = 512
[LuxCore][222.712]   sampler.metropolis.imagemutationrate = 0.10000000000000001
[LuxCore][222.712]   scene.epsilon.min = 9.9999997473787516e-06
[LuxCore][222.712]   sampler.type = "SOBOL"
[LuxCore][222.712]   film.filter.width = 1.5
[LuxCore][222.712]   lightstrategy.type = "LOG_POWER"
[LuxCore][222.712]   film.height = 540
[LuxCore][222.712]   renderengine.type = "PATHOCL"
[LuxCore][222.712]   film.filter.type = "BLACKMANHARRIS"
[LuxCore][222.712]   film.width = 960
[LuxCore][222.712]   scene.epsilon.max = 0.10000000149011612
[LuxCore][222.712]   film.opencl.enable = 1
[LuxCore][222.712]   film.opencl.device = 1
[LuxCore][222.712]   path.forceblackbackground.enable = 0
[LuxCore][222.712]   renderengine.seed = 1
[LuxCore][222.712]   film.outputs.0.type = "RGB_IMAGEPIPELINE"
[LuxCore][222.712]   film.outputs.0.index = 0
[LuxCore][222.712]   film.outputs.0.filename = "RGB_IMAGEPIPELINE_0.png"
[LuxCore][222.712]   film.imagepipelines.0.0.type = "NOP"
[LuxCore][222.712]   film.imagepipelines.0.1.type = "TONEMAP_AUTOLINEAR"
[LuxCore][222.712]   film.imagepipelines.0.2.type = "TONEMAP_LINEAR"
[LuxCore][222.712]   film.imagepipelines.0.2.scale = 0.5
[LuxCore][222.712]   film.imagepipelines.0.radiancescales.0.enabled = 1
[LuxCore][222.712]   film.imagepipelines.0.radiancescales.0.globalscale = 1
[LuxCore][222.712]   film.imagepipelines.0.radiancescales.0.rgbscale = 1 1 1
[LuxCore][222.712]   batch.haltspp = 0
[LuxCore][222.712]   batch.halttime = 0
[LuxCore][222.712] File Name Resolver Configuration: 
Export took 0.0 s
[LuxCore][222.713] Film resolution: 960x540
[SDL][222.713] Film output definition: RGB_IMAGEPIPELINE [image.png]
[SDL][222.713] Image pipeline: film.imagepipelines.0
[SDL][222.713] Image pipeline step 0: NOP
[SDL][222.713] Image pipeline step 1: TONEMAP_AUTOLINEAR
[SDL][222.713] Image pipeline step 2: TONEMAP_LINEAR
[SDL][222.714] Film output definition: RGB_IMAGEPIPELINE [RGB_IMAGEPIPELINE_0.png]
[LuxRays][222.716] OpenCL Platform 0: The pocl project
[LuxRays][222.716] OpenCL Platform 1: Mesa
[LuxRays][222.716] OpenCL Platform 2: NVIDIA Corporation
[LuxRays][222.717] Device 0 name: NativeThread
[LuxRays][222.717] Device 0 type: NATIVE_THREAD
[LuxRays][222.717] Device 0 compute units: 1
[LuxRays][222.717] Device 0 preferred float vector width: 4
[LuxRays][222.717] Device 0 max allocable memory: 0MBytes
[LuxRays][222.717] Device 0 max allocable memory block size: 0MBytes
[LuxRays][222.717] Device 1 name: pthread-Intel(R) Xeon(R) CPU           X3470  @ 2.93GHz
[LuxRays][222.717] Device 1 type: OPENCL_CPU
[LuxRays][222.717] Device 1 compute units: 8
[LuxRays][222.717] Device 1 preferred float vector width: 4
[LuxRays][222.717] Device 1 max allocable memory: 5845MBytes
[LuxRays][222.717] Device 1 max allocable memory block size: 2048MBytes
[LuxRays][222.717] Device 2 name: AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0)
[LuxRays][222.717] Device 2 type: OPENCL_GPU
[LuxRays][222.717] Device 2 compute units: 5
[LuxRays][222.717] Device 2 preferred float vector width: 4
[LuxRays][222.717] Device 2 max allocable memory: 1024MBytes
[LuxRays][222.717] Device 2 max allocable memory block size: 716MBytes
[LuxRays][222.718] Device 3 name: GeForce GTX 1080
[LuxRays][222.718] Device 3 type: OPENCL_GPU
[LuxRays][222.718] Device 3 compute units: 20
[LuxRays][222.718] Device 3 preferred float vector width: 1
[LuxRays][222.718] Device 3 max allocable memory: 8119MBytes
[LuxRays][222.718] Device 3 max allocable memory block size: 2029MBytes
[LuxRays][222.719] Creating 9 intersection device(s)
[LuxRays][222.719] Allocating intersection device 0: GeForce GTX 1080 (Type = OPENCL_GPU)
[LuxRays][222.719] Allocating intersection device 1: NativeThread (Type = NATIVE_THREAD)
[LuxRays][222.719] Allocating intersection device 2: NativeThread (Type = NATIVE_THREAD)
[LuxRays][222.719] Allocating intersection device 3: NativeThread (Type = NATIVE_THREAD)
[LuxRays][222.719] Allocating intersection device 4: NativeThread (Type = NATIVE_THREAD)
[LuxRays][222.719] Allocating intersection device 5: NativeThread (Type = NATIVE_THREAD)
[LuxRays][222.719] Allocating intersection device 6: NativeThread (Type = NATIVE_THREAD)
[LuxRays][222.719] Allocating intersection device 7: NativeThread (Type = NATIVE_THREAD)
[LuxRays][222.719] Allocating intersection device 8: NativeThread (Type = NATIVE_THREAD)
[LuxCore][222.719] OpenCL devices used:
[LuxCore][222.719] [GeForce GTX 1080 Intersect]
[LuxCore][222.719]   Device OpenCL version: OpenCL 1.2 CUDA
[LuxCore][222.719] Native devices used: 8
[LuxCore][222.719] Configuring 1 OpenCL render threads
[LuxCore][222.719] Configuring 8 native render threads
[LuxRays][222.719] Preprocessing DataSet
[LuxRays][222.719] Total vertex count: 24
[LuxRays][222.719] Total triangle count: 12
[LuxRays][222.719] Preprocessing DataSet done
[LuxRays][222.719] Adding DataSet accelerator: BVH
[LuxRays][222.719] Total vertex count: 24
[LuxRays][222.719] Total triangle count: 12
[LuxRays][222.726] BVH Dataset preprocessing time: 6ms
[LuxRays][222.726] BVH builder: EMBREE_BINNED_SAH
[LuxRays][222.726] BVH build hierarchy time: 0ms
[LuxRays][222.726] BVH total build time: 7ms
[LuxRays][222.726] Total BVH memory usage: 0Kbytes
[LuxRays][222.727] Adding DataSet accelerator: EMBREE
[LuxRays][222.727] Total vertex count: 24
[LuxRays][222.727] Total triangle count: 12
[LuxRays][222.727] EmbreeAccel build time: 0ms
[LuxRays][223.147] [Device GeForce GTX 1080 Intersect] BVH mesh vertices buffer size: 288bytes
[LuxRays][223.147] [Device GeForce GTX 1080 Intersect] BVH nodes buffer size: 608bytes
[LuxCore][223.255] [PathOCLRenderEngine] OpenCL task count: 524288
[LuxCore][223.258] [PathOCLBaseRenderEngine] OpenCL max. page memory size: 2078512Kbytes
[LuxCore][223.258] Compile Geometry
[LuxCore][223.258] Scene geometry compilation time: 0ms
[LuxCore][223.258] Compile 1 Textures
[LuxCore][223.258] Textures compilation time: 0ms
[LuxCore][223.258] Compile 1 Materials
[LuxCore][223.258] Material compilation time: 0ms
[LuxCore][223.258] Compile Lights
[LuxCore][223.260] Lights compilation time: 1ms
[LuxCore][223.260] Compile ImageMaps
[LuxCore][223.260] Image maps page(s) count: 0
[LuxCore][223.260] Image maps compilation time: 0ms
[LuxCore][223.260] Always enabled OpenCL code: 
[LuxCore][223.260] Compile Geometry
[LuxCore][223.260] Scene geometry compilation time: 0ms
[LuxCore][223.260] Compile 1 Textures
[LuxCore][223.260] Textures compilation time: 0ms
[LuxCore][223.260] Compile 1 Materials
[LuxCore][223.260] Material compilation time: 0ms
[LuxCore][223.260] Compile Lights
[LuxCore][223.262] Lights compilation time: 1ms
[LuxCore][223.262] Compile ImageMaps
[LuxCore][223.262] Image maps page(s) count: 0
[LuxCore][223.262] Image maps compilation time: 0ms
[LuxCore][223.262] Starting 1 OpenCL render threads
[LuxRays][223.274] [Device GeForce GTX 1080 Intersect] RADIANCE_PER_PIXEL_NORMALIZEDs[0] buffer size: 8100Kbytes
[LuxRays][223.275] [Device GeForce GTX 1080 Intersect] NOISE buffer size: 2025Kbytes
[LuxRays][223.287] [Device GeForce GTX 1080 Intersect] RADIANCE_PER_PIXEL_NORMALIZEDs[0] buffer size: 8100Kbytes
[LuxRays][223.288] [Device GeForce GTX 1080 Intersect] Camera buffer size: 5448bytes
[LuxRays][223.288] [Device GeForce GTX 1080 Intersect] Normals buffer size: 288bytes
[LuxRays][223.288] [Device GeForce GTX 1080 Intersect] Vertices buffer size: 288bytes
[LuxRays][223.289] [Device GeForce GTX 1080 Intersect] Triangles buffer size: 144bytes
[LuxRays][223.289] [Device GeForce GTX 1080 Intersect] Mesh description buffer size: 156bytes
[LuxRays][223.289] [Device GeForce GTX 1080 Intersect] Textures buffer size: 272bytes
[LuxRays][223.290] [Device GeForce GTX 1080 Intersect] Materials buffer size: 148bytes
[LuxRays][223.290] [Device GeForce GTX 1080 Intersect] Scene objects buffer size: 12bytes
[LuxRays][223.290] [Device GeForce GTX 1080 Intersect] Lights buffer size: 664bytes
[LuxRays][223.291] [Device GeForce GTX 1080 Intersect] Env. light indices buffer size: 4bytes
[LuxRays][223.291] [Device GeForce GTX 1080 Intersect] Light offsets (Part I) buffer size: 4bytes
[LuxRays][223.292] [Device GeForce GTX 1080 Intersect] Env. light distributions buffer size: 1028Kbytes
[LuxRays][223.292] [Device GeForce GTX 1080 Intersect] LightsDistribution buffer size: 24bytes
[LuxRays][223.293] [Device GeForce GTX 1080 Intersect] InfiniteLightSourcesDistribution buffer size: 24bytes
[LuxRays][223.294] [Device GeForce GTX 1080 Intersect] Ray buffer size: 24576Kbytes
[LuxRays][223.294] [Device GeForce GTX 1080 Intersect] RayHit buffer size: 10240Kbytes
[LuxCore][223.294] [PathOCLBaseRenderThread::0] Size of a GPUTask: 164bytes
[LuxRays][223.294] [Device GeForce GTX 1080 Intersect] GPUTask buffer size: 83968Kbytes
[LuxCore][223.294] [PathOCLBaseRenderThread::0] Size of a GPUTask DirectLight: 84bytes
[LuxRays][223.295] [Device GeForce GTX 1080 Intersect] GPUTaskDirectLight buffer size: 43008Kbytes
[LuxCore][223.295] [PathOCLBaseRenderThread::0] Size of a GPUTask State: 232bytes
[LuxRays][223.295] [Device GeForce GTX 1080 Intersect] GPUTaskState buffer size: 118784Kbytes
[LuxRays][223.295] [Device GeForce GTX 1080 Intersect] GPUTask Stats buffer size: 2048Kbytes
[LuxRays][223.296] [Device GeForce GTX 1080 Intersect] SamplerSharedData buffer size: 2025Kbytes
[LuxCore][223.297] [PathOCLBaseRenderThread::0] Size of a Sample: 88bytes
[LuxRays][223.297] [Device GeForce GTX 1080 Intersect] Sample buffer size: 45056Kbytes
[LuxCore][223.297] [PathOCLBaseRenderThread::0] Sample dimensions: 54
[LuxCore][223.298] [PathOCLBaseRenderThread::0] Size of a SampleData: 8bytes
[LuxRays][223.298] [Device GeForce GTX 1080 Intersect] SampleData buffer size: 4096Kbytes
[LuxRays][223.298] [Device GeForce GTX 1080 Intersect] Pixel Filter Distribution buffer size: 33Kbytes
[LuxCore][223.301] [PathOCLBaseRenderThread::0] Defined symbols:  -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL -D RENDER_ENGINE_PATHOCL -D PARAM_RAY_EPSILON_MIN=1.000000e-05f -D PARAM_RAY_EPSILON_MAX=1.000000e-01f -D PARAM_LIGHT_WORLD_RADIUS_SCALE=1.050000e+00f -D PARAM_ACCEL_BVH -D PARAM_FILM_RADIANCE_GROUP_0 -D PARAM_FILM_RADIANCE_GROUP_COUNT=1 -D PARAM_FILM_CHANNELS_HAS_NOISE -D PARAM_ENABLE_TEX_CONST_FLOAT -D PARAM_ENABLE_TEX_CONST_FLOAT3 -D PARAM_ENABLE_TEX_IMAGEMAP -D PARAM_ENABLE_TEX_NORMALMAP -D PARAM_ENABLE_TEX_FRESNELCOLOR -D PARAM_ENABLE_TEX_FRESNELCONST -D PARAM_ENABLE_MAT_MATTE -D PARAM_CAMERA_TYPE=0 -D PARAM_HAS_SKYLIGHT2 -D PARAM_HAS_POINTLIGHT -D PARAM_HAS_ENVLIGHTS -D PARAM_MAX_PATH_DEPTH=7 -D PARAM_MAX_PATH_DEPTH_DIFFUSE=5 -D PARAM_MAX_PATH_DEPTH_GLOSSY=5 -D PARAM_MAX_PATH_DEPTH_SPECULAR=6 -D PARAM_RR_DEPTH=3 -D PARAM_RR_CAP=5.000000e-01f -D PARAM_SQRT_VARIANCE_CLAMP_MAX_VALUE=0.000000e+00f -D PARAM_IMAGE_FILTER_TYPE=5 -D PARAM_IMAGE_FILTER_WIDTH_X=1.500000e+00f -D PARAM_IMAGE_FILTER_WIDTH_Y=1.500000e+00f -D PARAM_IMAGE_FILTER_PIXEL_WIDTH_X=1 -D PARAM_IMAGE_FILTER_PIXEL_WIDTH_Y=1 -D PARAM_SAMPLER_TYPE=2 -D PARAM_SAMPLER_SOBOL_STARTOFFSET=32 -D LUXCORE_NVIDIA_OPENCL
[LuxCore][223.301] [PathOCLBaseRenderThread::0] Compiling kernels 
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Kernels cached
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling Film_Clear Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling InitSeed Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling Init Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_RT_NEXT_VERTEX Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_HIT_NOTHING Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_HIT_OBJECT Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_RT_DL Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_DL_ILLUMINATE Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_DL_SAMPLE_BSDF Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_GENERATE_NEXT_VERTEX_RAY Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_SPLAT_SAMPLE Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_NEXT_SAMPLE Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_HIT_OBJECT Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_RT_DL Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_DL_ILLUMINATE Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_DL_SAMPLE_BSDF Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_GENERATE_NEXT_VERTEX_RAY Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_SPLAT_SAMPLE Kernel
[LuxCore][223.307] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_NEXT_SAMPLE Kernel
[LuxCore][223.308] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_GENERATE_CAMERA_RAY Kernel
[LuxCore][223.308] [PathOCLBaseRenderThread::0] Kernels compilation time: 9ms
[LuxCore][223.308] Starting 8 native render threads
Session started in 0.6 s
[LuxCore][223.361] Film OpenCL image pipeline
[LuxCore][223.361] Film OpenCL Device used: AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect
[LuxCore][223.361]   Device OpenCL version: OpenCL 1.1 Mesa 19.1.8
[LuxRays][224.253] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] IMAGEPIPELINE buffer size: 6075Kbytes
[LuxRays][224.258] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Merge buffer size: 8100Kbytes
[LuxCore][224.269] [MergeSampleBuffersOCL] Defined symbols: -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL
[LuxCore][224.269] [MergeSampleBuffersOCL] Compiling kernels 
[LuxCore][224.269] [MergeSampleBuffersOCL] Kernels cached
[LuxCore][224.269] [MergeSampleBuffersOCL] Compiling Film_MergeBufferInitialize Kernel
[LuxCore][224.269] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_PIXEL_NORMALIZED Kernel
[LuxCore][224.269] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_SCREEN_NORMALIZED Kernel
[LuxCore][224.269] [MergeSampleBuffersOCL] Compiling Film_MergeBufferFinalize Kernel
[LuxCore][224.269] [MergeSampleBuffersOCL] Kernels compilation time: 0ms
[LuxRays][224.338] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Accumulation buffer size: 47Kbytes
[LuxCore][224.342] [AutoLinearToneMap] Defined symbols: -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL
[LuxCore][224.343] [AutoLinearToneMap] Compiling kernels 
[LuxCore][224.343] [AutoLinearToneMap] Kernels cached
[LuxCore][224.343] [AutoLinearToneMap] Compiling OpRGBValuesReduce Kernel
[LuxCore][224.343] [AutoLinearToneMap] Compiling OpRGBValueAccumulate Kernel
[LuxCore][224.343] [AutoLinearToneMap] Compiling AutoLinearToneMap_Apply Kernel
[LuxCore][224.343] [AutoLinearToneMap] Kernels compilation time: 0ms
[LuxCore][224.343] [LinearToneMap] Defined symbols:
Viewport CPU rendering, also black:

Code: Select all

Updating OpenCL device list
==================================================
[Engine/Viewport] New session
[Exporter] Creating session
[SDL][100.722] Camera type: perspective
[SDL][100.722] Camera position: Point[7.10258, -3.13711, 3.86672]
[SDL][100.722] Camera target: Point[6.28375, -2.77544, 3.42094]
[SDL][100.722] Camera clipping plane disabled
WARNING: Material "Material": Missing node tree
[SDL][100.723] Material definition: 140347587718664
[SDL][100.723] Scene objects count: 1
[SDL][100.723] Light definition: 140347587717128
[SDL][100.723] Light definition: __WORLD_BACKGROUND_LIGHT__
[LuxCore][100.758] Configuration: 
[LuxCore][100.758]   path.pathdepth.total = 7
[LuxCore][100.758]   path.pathdepth.diffuse = 5
[LuxCore][100.758]   path.pathdepth.glossy = 5
[LuxCore][100.758]   path.pathdepth.specular = 6
[LuxCore][100.758]   path.hybridbackforward.enable = 0
[LuxCore][100.758]   path.hybridbackforward.partition = 0.80000000000000004
[LuxCore][100.758]   path.hybridbackforward.glossinessthreshold = 0.048999998718500137
[LuxCore][100.758]   rtpathcpu.zoomphase.size = 4
[LuxCore][100.758]   rtpathcpu.zoomphase.weight = 0
[LuxCore][100.758]   scene.epsilon.min = 9.9999997473787516e-06
[LuxCore][100.758]   sampler.type = "RTPATHCPUSAMPLER"
[LuxCore][100.758]   film.filter.width = 1.5
[LuxCore][100.758]   lightstrategy.type = "LOG_POWER"
[LuxCore][100.758]   film.height = 782
[LuxCore][100.758]   renderengine.type = "RTPATHCPU"
[LuxCore][100.758]   film.filter.type = "BLACKMANHARRIS"
[LuxCore][100.758]   film.width = 725
[LuxCore][100.758]   scene.epsilon.max = 0.10000000149011612
[LuxCore][100.758]   film.opencl.enable = 1
[LuxCore][100.758]   film.opencl.device = 1
[LuxCore][100.758]   path.forceblackbackground.enable = 0
[LuxCore][100.758]   renderengine.seed = 1
[LuxCore][100.758]   film.outputs.0.type = "RGB_IMAGEPIPELINE"
[LuxCore][100.758]   film.outputs.0.index = 0
[LuxCore][100.758]   film.outputs.0.filename = "RGB_IMAGEPIPELINE_0.png"
[LuxCore][100.758]   film.outputs.1.type = "ALBEDO"
[LuxCore][100.758]   film.outputs.1.filename = "ALBEDO.exr"
[LuxCore][100.758]   film.outputs.2.type = "AVG_SHADING_NORMAL"
[LuxCore][100.758]   film.outputs.2.filename = "AVG_SHADING_NORMAL.exr"
[LuxCore][100.758]   film.imagepipelines.0.0.type = "NOP"
[LuxCore][100.758]   film.imagepipelines.0.1.type = "TONEMAP_AUTOLINEAR"
[LuxCore][100.758]   film.imagepipelines.0.2.type = "TONEMAP_LINEAR"
[LuxCore][100.758]   film.imagepipelines.0.2.scale = 0.5
[LuxCore][100.759]   film.imagepipelines.0.radiancescales.0.enabled = 1
[LuxCore][100.759]   film.imagepipelines.0.radiancescales.0.globalscale = 1
[LuxCore][100.759]   film.imagepipelines.0.radiancescales.0.rgbscale = 1 1 1
[LuxCore][100.759]   batch.haltspp = 0
[LuxCore][100.759]   batch.halttime = 0
[LuxCore][100.759] File Name Resolver Configuration: 
Export took 0.0 s
[LuxCore][100.759] Film resolution: 725x782
[SDL][100.759] Film output definition: RGB_IMAGEPIPELINE [image.png]
[SDL][100.760] Image pipeline: film.imagepipelines.0
[SDL][100.760] Image pipeline step 0: NOP
[SDL][100.760] Image pipeline step 1: TONEMAP_AUTOLINEAR
[SDL][100.760] Image pipeline step 2: TONEMAP_LINEAR
[SDL][100.760] Film output definition: RGB_IMAGEPIPELINE [RGB_IMAGEPIPELINE_0.png]
[SDL][100.760] Film output definition: ALBEDO [ALBEDO.exr]
[SDL][100.760] Film output definition: AVG_SHADING_NORMAL [AVG_SHADING_NORMAL.exr]
[LuxRays][100.760] OpenCL Platform 0: The pocl project
[LuxRays][100.760] OpenCL Platform 1: Mesa
[LuxRays][100.760] OpenCL Platform 2: NVIDIA Corporation
[LuxRays][100.760] Device 0 name: NativeThread
[LuxRays][100.760] Device 0 type: NATIVE_THREAD
[LuxRays][100.760] Device 0 compute units: 1
[LuxRays][100.760] Device 0 preferred float vector width: 4
[LuxRays][100.760] Device 0 max allocable memory: 0MBytes
[LuxRays][100.760] Device 0 max allocable memory block size: 0MBytes
[LuxRays][100.760] Device 1 name: pthread-Intel(R) Xeon(R) CPU           X3470  @ 2.93GHz
[LuxRays][100.760] Device 1 type: OPENCL_CPU
[LuxRays][100.760] Device 1 compute units: 8
[LuxRays][100.761] Device 1 preferred float vector width: 4
[LuxRays][100.761] Device 1 max allocable memory: 5845MBytes
[LuxRays][100.761] Device 1 max allocable memory block size: 2048MBytes
[LuxRays][100.761] Device 2 name: AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0)
[LuxRays][100.761] Device 2 type: OPENCL_GPU
[LuxRays][100.761] Device 2 compute units: 5
[LuxRays][100.761] Device 2 preferred float vector width: 4
[LuxRays][100.761] Device 2 max allocable memory: 1024MBytes
[LuxRays][100.761] Device 2 max allocable memory block size: 716MBytes
[LuxRays][100.761] Device 3 name: GeForce GTX 1080
[LuxRays][100.761] Device 3 type: OPENCL_GPU
[LuxRays][100.761] Device 3 compute units: 20
[LuxRays][100.761] Device 3 preferred float vector width: 1
[LuxRays][100.761] Device 3 max allocable memory: 8119MBytes
[LuxRays][100.761] Device 3 max allocable memory block size: 2029MBytes
[LuxRays][100.761] Creating 8 intersection device(s)
[LuxRays][100.761] Allocating intersection device 0: NativeThread (Type = NATIVE_THREAD)
[LuxRays][100.761] Allocating intersection device 1: NativeThread (Type = NATIVE_THREAD)
[LuxRays][100.761] Allocating intersection device 2: NativeThread (Type = NATIVE_THREAD)
[LuxRays][100.762] Allocating intersection device 3: NativeThread (Type = NATIVE_THREAD)
[LuxRays][100.762] Allocating intersection device 4: NativeThread (Type = NATIVE_THREAD)
[LuxRays][100.762] Allocating intersection device 5: NativeThread (Type = NATIVE_THREAD)
[LuxRays][100.762] Allocating intersection device 6: NativeThread (Type = NATIVE_THREAD)
[LuxRays][100.762] Allocating intersection device 7: NativeThread (Type = NATIVE_THREAD)
[LuxCore][100.762] Configuring 8 CPU render threads
[LuxRays][100.762] Preprocessing DataSet
[LuxRays][100.762] Total vertex count: 24
[LuxRays][100.762] Total triangle count: 12
[LuxRays][100.762] Preprocessing DataSet done
[LuxRays][100.762] Adding DataSet accelerator: EMBREE
[LuxRays][100.762] Total vertex count: 24
[LuxRays][100.762] Total triangle count: 12
[LuxRays][100.763] EmbreeAccel build time: 1ms
[LuxCore][100.906] Film OpenCL image pipeline
[LuxCore][100.906] Film OpenCL Device used: AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect
[LuxCore][100.906]   Device OpenCL version: OpenCL 1.1 Mesa 19.1.8
[LuxRays][102.002] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] IMAGEPIPELINE buffer size: 6643Kbytes
[LuxRays][102.008] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Merge buffer size: 8858Kbytes
[LuxCore][102.008] [MergeSampleBuffersOCL] Defined symbols: -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL
[LuxCore][102.008] [MergeSampleBuffersOCL] Compiling kernels 
[LuxCore][102.008] [MergeSampleBuffersOCL] Kernels cached
[LuxCore][102.008] [MergeSampleBuffersOCL] Compiling Film_MergeBufferInitialize Kernel
[LuxCore][102.008] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_PIXEL_NORMALIZED Kernel
[LuxCore][102.009] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_SCREEN_NORMALIZED Kernel
[LuxCore][102.009] [MergeSampleBuffersOCL] Compiling Film_MergeBufferFinalize Kernel
[LuxCore][102.009] [MergeSampleBuffersOCL] Kernels compilation time: 0ms
[LuxRays][102.091] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Accumulation buffer size: 51Kbytes
[LuxCore][102.091] [AutoLinearToneMap] Defined symbols: -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL
[LuxCore][102.091] [AutoLinearToneMap] Compiling kernels 
[LuxCore][102.092] [AutoLinearToneMap] Kernels cached
[LuxCore][102.092] [AutoLinearToneMap] Compiling OpRGBValuesReduce Kernel
[LuxCore][102.092] [AutoLinearToneMap] Compiling OpRGBValueAccumulate Kernel
[LuxCore][102.092] [AutoLinearToneMap] Compiling AutoLinearToneMap_Apply Kernel
[LuxCore][102.092] [AutoLinearToneMap] Kernels compilation time: 0ms
[LuxCore][102.093] [LinearToneMap] Defined symbols: 
[LuxCore][102.093] [LinearToneMap] Compiling kernels 
[LuxCore][102.093] [LinearToneMap] Kernels cached
[LuxCore][102.093] [LinearToneMap] Compiling LinearToneMap_Apply Kernel
[LuxCore][102.093] [LinearToneMap] Kernels compilation time: 0ms
[Exporter] Update because of: NONE
[Engine/Viewport] Pausing session
Attachments
BlenderRenderWrong.png
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Black Image rendering on GPU

Post by Dade »

Question: I have the feeling you are on Linux :?: And you are using some open source driver instead of AMD official driver :?: It looks like you have a broken OpenCL installation. It is not uncommon, I have to install AMD/NVIDIA drivers in a precise order and with some specific setting to have them work fine on a mixed AMD/NVIDIA multi-GPUs setup.

Does LuxMark work with your 2 GPUs ?
netlinker wrote: Tue Feb 04, 2020 1:38 pm The Problem is now that I have setup a quite complex scene which is now only rendering black images.

Any ideas how to rescue the scene?
It is a quite strange problem, I would try to install the OpenCL-less version of BlendLuxCore so it should remove all OpenCL related problems. I would than load the problematic scene, set the render engine to CPU and save the scene (than you can install the OpenCL-enabled version again).
Support LuxCoreRender project with salts and bounties
netlinker
Posts: 4
Joined: Tue Feb 04, 2020 1:01 pm

Re: Black Image rendering on GPU

Post by netlinker »

Yes I am on Linux and the AMD driver is the old radeon open source driver.
I didn't get Luxmark to run. It's just saying this on startup, but I wasn't able to figure out the problem:

Code: Select all

terminate called after throwing an instance of 'cl::Error'
  what():  clGetDeviceIDs
./luxmark: line 12: 27538 Aborted                 (core dumped) ./luxmark.bin "$@"
Switching to blendluxcore 2.2 without opencl solves the problem. Everything is rendering again as it should.
I then saved the file and switched back to blendluxcore with opencl. I had to find out that it was still rendering just black, although rendering mode was switched to BiDir, because I assumed this would force rendering on cpu.
But at least I can now work on my model without opencl for now, which is great.
I will try this evening what happens if I switch to another architecture (new amd with amdgpu driver and nothing else).
Should I provide any additional information?
I could for example do a diff of the blender config file before and after the crash of the cl-kernel compilation, as this seems to brake something in the configuration file also and not just the current model.

Code: Select all

Updating OpenCL device list
==================================================
[Engine/Viewport] New session
[Exporter] Creating session
[SDL][5.759] Camera type: perspective
[SDL][5.759] Camera position: Point[0.0434282, -0.04059, 0.0841821]
[SDL][5.759] Camera target: Point[0.0442791, -0.0401776, 0.0838565]
[SDL][5.759] Camera clipping plane disabled
WARNING: Object "Cableshield": 1 image texture(s) used, but no UVs defined. In case of bumpmaps this can lead to artifacts
WARNING: Material "Ceramic": Missing node tree
WARNING: Object "Cylinder": No material defined
[SDL][5.857] Texture definition: 140611448821768Color
[SDL][5.857] Reading texture map: /home/ddiener/Dokumente/Arbeit/woodlight-lamps/Leuchte/photos_2015_09_18_fst_765b3qqmm4v.jpg
[SDL][6.881] Texture definition: 140611448402440Fresnel
[SDL][6.881] Texture definition: 140611448269832Fresnel
[SDL][6.881] Texture definition: 140611448477192Color
[SDL][6.882] Material definition: 140611451533320
[SDL][6.882] Material definition: 140611451527176
[SDL][6.882] Material definition: 140611451362824
[SDL][6.882] Material definition: 140611451528712
[SDL][6.882] Material definition: 140611451181064
[SDL][6.882] Material definition: 140611451359752
[SDL][6.882] Material definition: 140611451179528
[SDL][6.883] Material definition: 140611451531784
[SDL][6.883] Material definition: 140611451182600
[SDL][6.883] Material definition: 140611451358216
[SDL][6.883] Material definition: 140611451185672
[SDL][6.883] Material definition: 140611451361288
[SDL][6.883] Material definition: 140611451356680
[SDL][6.883] Material definition: __CLAY__
[SDL][6.883] Material definition: 140611451355144
[SDL][6.884] The 140611472380424000 object is a light sources with 124 triangles
[SDL][6.884] The 140611472378888000 object is a light sources with 124 triangles
[SDL][6.885] Scene objects count: 73
[SDL][6.885] Light definition: __WORLD_BACKGROUND_LIGHT__
[LuxCore][6.921] Configuration: 
[LuxCore][6.921]   light.maxdepth = 10
[LuxCore][6.921]   path.maxdepth = 10
[LuxCore][6.921]   film.noiseestimation.warmup = 8
[LuxCore][6.921]   film.noiseestimation.step = 32
[LuxCore][6.921]   sampler.sobol.adaptive.strength = 0.94999998807907104
[LuxCore][6.921]   sampler.random.adaptive.strength = 0.94999998807907104
[LuxCore][6.921]   sampler.metropolis.largesteprate = 0.40000000000000002
[LuxCore][6.921]   sampler.metropolis.maxconsecutivereject = 512
[LuxCore][6.921]   sampler.metropolis.imagemutationrate = 0.10000000000000001
[LuxCore][6.921]   lightstrategy.type = "LOG_POWER"
[LuxCore][6.921]   scene.epsilon.max = 0.10000000149011612
[LuxCore][6.921]   sampler.type = "METROPOLIS"
[LuxCore][6.921]   renderengine.type = "BIDIRCPU"
[LuxCore][6.921]   film.filter.width = 1.5
[LuxCore][6.921]   scene.epsilon.min = 9.9999997473787516e-06
[LuxCore][6.921]   film.width = 292
[LuxCore][6.921]   film.filter.type = "BLACKMANHARRIS"
[LuxCore][6.921]   film.height = 867
[LuxCore][6.921]   film.opencl.enable = 1
[LuxCore][6.921]   film.opencl.device = 1
[LuxCore][6.921]   path.forceblackbackground.enable = 0
[LuxCore][6.921]   renderengine.seed = 1
[LuxCore][6.921]   film.outputs.0.type = "RGB_IMAGEPIPELINE"
[LuxCore][6.921]   film.outputs.0.index = 0
[LuxCore][6.921]   film.outputs.0.filename = "RGB_IMAGEPIPELINE_0.png"
[LuxCore][6.921]   film.outputs.1.type = "ALBEDO"
[LuxCore][6.921]   film.outputs.1.filename = "ALBEDO.exr"
[LuxCore][6.921]   film.outputs.2.type = "AVG_SHADING_NORMAL"
[LuxCore][6.921]   film.outputs.2.filename = "AVG_SHADING_NORMAL.exr"
[LuxCore][6.922]   film.imagepipelines.0.0.type = "NOP"
[LuxCore][6.922]   film.imagepipelines.0.1.type = "TONEMAP_AUTOLINEAR"
[LuxCore][6.922]   film.imagepipelines.0.2.type = "TONEMAP_LINEAR"
[LuxCore][6.922]   film.imagepipelines.0.2.scale = 0.5
[LuxCore][6.922]   film.imagepipelines.0.radiancescales.0.enabled = 1
[LuxCore][6.922]   film.imagepipelines.0.radiancescales.0.globalscale = 1
[LuxCore][6.922]   film.imagepipelines.0.radiancescales.0.rgbscale = 1 1 1
[LuxCore][6.922]   batch.haltspp = 0
[LuxCore][6.922]   batch.halttime = 3017
[LuxCore][6.922] File Name Resolver Configuration: 
Export took 1.2 s
[LuxCore][6.922] Film resolution: 292x867
[SDL][6.923] Film output definition: RGB_IMAGEPIPELINE [image.png]
[SDL][6.923] Image pipeline: film.imagepipelines.0
[SDL][6.923] Image pipeline step 0: NOP
[SDL][6.923] Image pipeline step 1: TONEMAP_AUTOLINEAR
[SDL][6.923] Image pipeline step 2: TONEMAP_LINEAR
[SDL][6.923] Film output definition: RGB_IMAGEPIPELINE [RGB_IMAGEPIPELINE_0.png]
[SDL][6.923] Film output definition: ALBEDO [ALBEDO.exr]
[SDL][6.923] Film output definition: AVG_SHADING_NORMAL [AVG_SHADING_NORMAL.exr]
[LuxRays][6.925] OpenCL Platform 0: The pocl project
[LuxRays][6.925] OpenCL Platform 1: Mesa
[LuxRays][6.925] OpenCL Platform 2: NVIDIA Corporation
[LuxRays][6.925] Device 0 name: NativeThread
[LuxRays][6.925] Device 0 type: NATIVE_THREAD
[LuxRays][6.925] Device 0 compute units: 1
[LuxRays][6.925] Device 0 preferred float vector width: 4
[LuxRays][6.925] Device 0 max allocable memory: 0MBytes
[LuxRays][6.925] Device 0 max allocable memory block size: 0MBytes
[LuxRays][6.925] Device 1 name: pthread-Intel(R) Xeon(R) CPU           X3470  @ 2.93GHz
[LuxRays][6.925] Device 1 type: OPENCL_CPU
[LuxRays][6.925] Device 1 compute units: 8
[LuxRays][6.925] Device 1 preferred float vector width: 4
[LuxRays][6.925] Device 1 max allocable memory: 5845MBytes
[LuxRays][6.925] Device 1 max allocable memory block size: 2048MBytes
[LuxRays][6.925] Device 2 name: AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0)
[LuxRays][6.925] Device 2 type: OPENCL_GPU
[LuxRays][6.925] Device 2 compute units: 5
[LuxRays][6.925] Device 2 preferred float vector width: 4
[LuxRays][6.925] Device 2 max allocable memory: 1024MBytes
[LuxRays][6.925] Device 2 max allocable memory block size: 716MBytes
[LuxRays][6.925] Device 3 name: GeForce GTX 1080
[LuxRays][6.925] Device 3 type: OPENCL_GPU
[LuxRays][6.925] Device 3 compute units: 20
[LuxRays][6.925] Device 3 preferred float vector width: 1
[LuxRays][6.925] Device 3 max allocable memory: 8119MBytes
[LuxRays][6.926] Device 3 max allocable memory block size: 2029MBytes
[LuxRays][6.926] Creating 8 intersection device(s)
[LuxRays][6.926] Allocating intersection device 0: NativeThread (Type = NATIVE_THREAD)
[LuxRays][6.926] Allocating intersection device 1: NativeThread (Type = NATIVE_THREAD)
[LuxRays][6.926] Allocating intersection device 2: NativeThread (Type = NATIVE_THREAD)
[LuxRays][6.926] Allocating intersection device 3: NativeThread (Type = NATIVE_THREAD)
[LuxRays][6.926] Allocating intersection device 4: NativeThread (Type = NATIVE_THREAD)
[LuxRays][6.926] Allocating intersection device 5: NativeThread (Type = NATIVE_THREAD)
[LuxRays][6.926] Allocating intersection device 6: NativeThread (Type = NATIVE_THREAD)
[LuxRays][6.926] Allocating intersection device 7: NativeThread (Type = NATIVE_THREAD)
[LuxCore][6.926] Configuring 8 CPU render threads
[LuxRays][6.926] Preprocessing DataSet
[LuxRays][6.926] Total vertex count: 343322
[LuxRays][6.926] Total triangle count: 188222
[LuxRays][6.929] Preprocessing DataSet done
[LuxRays][6.929] Adding DataSet accelerator: EMBREE
[LuxRays][6.929] Total vertex count: 343322
[LuxRays][6.929] Total triangle count: 188222
[LuxRays][6.973] EmbreeAccel build time: 43ms
[LuxCore][7.083] Film OpenCL image pipeline
[LuxCore][7.083] Film OpenCL Device used: AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect
[LuxCore][7.083]   Device OpenCL version: OpenCL 1.1 Mesa 19.1.8
[LuxRays][8.101] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] IMAGEPIPELINE buffer size: 2966Kbytes
[LuxRays][8.102] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Merge buffer size: 3955Kbytes
[LuxCore][8.103] [MergeSampleBuffersOCL] Defined symbols: -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL
[LuxCore][8.103] [MergeSampleBuffersOCL] Compiling kernels 
[LuxCore][8.103] [MergeSampleBuffersOCL] Kernels cached
[LuxCore][8.103] [MergeSampleBuffersOCL] Compiling Film_MergeBufferInitialize Kernel
[LuxCore][8.103] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_PIXEL_NORMALIZED Kernel
[LuxCore][8.103] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_SCREEN_NORMALIZED Kernel
[LuxCore][8.103] [MergeSampleBuffersOCL] Compiling Film_MergeBufferFinalize Kernel
[LuxCore][8.104] [MergeSampleBuffersOCL] Kernels compilation time: 1ms
[LuxRays][8.167] [Device AMD REDWOOD (DRM 2.50.0 / 5.4.12-100.fc30.x86_64, LLVM 8.0.0) Intersect] Accumulation buffer size: 23Kbytes
[LuxCore][8.167] [AutoLinearToneMap] Defined symbols: -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL
[LuxCore][8.167] [AutoLinearToneMap] Compiling kernels 
[LuxCore][8.168] [AutoLinearToneMap] Kernels cached
[LuxCore][8.168] [AutoLinearToneMap] Compiling OpRGBValuesReduce Kernel
[LuxCore][8.168] [AutoLinearToneMap] Compiling OpRGBValueAccumulate Kernel
[LuxCore][8.168] [AutoLinearToneMap] Compiling AutoLinearToneMap_Apply Kernel
[LuxCore][8.168] [AutoLinearToneMap] Kernels compilation time: 0ms
[LuxCore][8.169] [LinearToneMap] Defined symbols: 
[LuxCore][8.169] [LinearToneMap] Compiling kernels 
[LuxCore][8.169] [LinearToneMap] Kernels cached
[LuxCore][8.169] [LinearToneMap] Compiling LinearToneMap_Apply Kernel
[LuxCore][8.169] [LinearToneMap] Kernels compilation time: 0ms
[Exporter] Update because of: NONE
[Engine/Viewport] Pausing session

It still seems to use the AMD FirePro for something, although rendering with BiDir which seems strange.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Black Image rendering on GPU

Post by Dade »

netlinker wrote: Tue Feb 04, 2020 3:23 pm Yes I am on Linux and the AMD driver is the old radeon open source driver.
I didn't get Luxmark to run. It's just saying this on startup, but I wasn't able to figure out the problem:

Code: Select all

terminate called after throwing an instance of 'cl::Error'
  what():  clGetDeviceIDs
./luxmark: line 12: 27538 Aborted                 (core dumped) ./luxmark.bin "$@"
Like I wrote before, your OpenCL installation is broken. Is your monitor connected to the AMD or NVIDIA GPU ? Or you have multiple monitors ?

You have to use AMD binary drivers and to be careful in driver installation order (for instance, I have to install first AMD drivers than NVIDIA head-less driver or AMD installation will break NVIDIA one).

You have first to fix your OpenCL installation (i.e. be able to run LuxMark) otherwise OpenCL-enabled BlendLuxCore is never going to work.
netlinker wrote: Tue Feb 04, 2020 3:23 pm It still seems to use the AMD FirePro for something, although rendering with BiDir which seems strange.
Yes, LuxCore uses OpenCL for 2 things:

1) rendering;
2) image pipeline (i.e rendering post-processing);

So you have, not only to set a rendering mode to PATHCPU or BIDIRCPU but also to disable OpenCL image pipeline processing (not sure if there is a setting exposed in v2.2, it may have been added later in BlendLuxCore).
Support LuxCoreRender project with salts and bounties
netlinker
Posts: 4
Joined: Tue Feb 04, 2020 1:01 pm

Re: Black Image rendering on GPU

Post by netlinker »

Aha, this explanes it.
I'm working on getting opencl to work now for the AMD.
Setup is split. I'm using one monitor with the AMD and one with the NVIDIA. Although the NVIDIA messed up my xorg.conf which in turn disabled the AMD video output (I had the AMD first).
The possibility to switch the opencl device also for the image pipeline like its done for rendering would solve this problem, but that's probably out of scope as the reason is the non working opencl in the first place.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Black Image rendering on GPU

Post by Dade »

netlinker wrote: Tue Feb 04, 2020 3:47 pm Aha, this explanes it.
I'm working on getting opencl to work now for the AMD.
Setup is split. I'm using one monitor with the AMD and one with the NVIDIA. Although the NVIDIA messed up my xorg.conf which in turn disabled the AMD video output (I had the AMD first).
I have a Linux setup with AMD GPU connected to a monitor and head-less NVIDIA GPU and it was quite tricky to find a working software setup.

Usually, one vendor installation procedure breaks the other one for OpenGL/OpenCL and the Linux distribution updates try to break both with Mesa software OpenGL/OpenCL :roll:

Just to say that attaching both monitors to a GPU and using the other GPU only as compute device may be easier. Installing NVIDIA GPU as compute-only device is quite easy and without side effects.
netlinker wrote: Tue Feb 04, 2020 3:47 pm The possibility to switch the opencl device also for the image pipeline like its done for rendering would solve this problem, but that's probably out of scope as the reason is the non working opencl in the first place.
It is possible but again I'm not sure if the setting is exposed in your BlendLuxCore version (I have the feeling it was exposed in a later version).
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Black Image rendering on GPU

Post by B.Y.O.B. »

Dade wrote: Tue Feb 04, 2020 4:00 pm
netlinker wrote: Tue Feb 04, 2020 3:47 pm The possibility to switch the opencl device also for the image pipeline like its done for rendering would solve this problem, but that's probably out of scope as the reason is the non working opencl in the first place.
It is possible but again I'm not sure if the setting is exposed in your BlendLuxCore version (I have the feeling it was exposed in a later version).
I don't remember when it was exposed (quite a while ago), but yes, this is possible in the latest daily builds.
netlinker
Posts: 4
Joined: Tue Feb 04, 2020 1:01 pm

Re: Black Image rendering on GPU

Post by netlinker »

Dade wrote: Tue Feb 04, 2020 4:00 pm
netlinker wrote: Tue Feb 04, 2020 3:47 pm Aha, this explanes it.
I'm working on getting opencl to work now for the AMD.
Setup is split. I'm using one monitor with the AMD and one with the NVIDIA. Although the NVIDIA messed up my xorg.conf which in turn disabled the AMD video output (I had the AMD first).
I have a Linux setup with AMD GPU connected to a monitor and head-less NVIDIA GPU and it was quite tricky to find a working software setup.

Usually, one vendor installation procedure breaks the other one for OpenGL/OpenCL and the Linux distribution updates try to break both with Mesa software OpenGL/OpenCL :roll:

Just to say that attaching both monitors to a GPU and using the other GPU only as compute device may be easier. Installing NVIDIA GPU as compute-only device is quite easy and without side effects.
netlinker wrote: Tue Feb 04, 2020 3:47 pm The possibility to switch the opencl device also for the image pipeline like its done for rendering would solve this problem, but that's probably out of scope as the reason is the non working opencl in the first place.
It is possible but again I'm not sure if the setting is exposed in your BlendLuxCore version (I have the feeling it was exposed in a later version).
Thats exactly what I just did, and it fixed the issue permanently. So thank you for the tip with the defective driver. I installed the Mesa/radeon cl driver alltogether. I tried to get it working, but clpeak hard-crashed my pc (It seems there is something badly broken in that driver). As I guess the performance of a card that old is not worth the trouble, so deactivating is the best solution here.
B.Y.O.B. wrote: Tue Feb 04, 2020 4:07 pm
Dade wrote: Tue Feb 04, 2020 4:00 pm
netlinker wrote: Tue Feb 04, 2020 3:47 pm The possibility to switch the opencl device also for the image pipeline like its done for rendering would solve this problem, but that's probably out of scope as the reason is the non working opencl in the first place.
It is possible but again I'm not sure if the setting is exposed in your BlendLuxCore version (I have the feeling it was exposed in a later version).
I don't remember when it was exposed (quite a while ago), but yes, this is possible in the latest daily builds.
In this case, I would say case closed, unless someone is feeling bored to death and wants to torture himself by debugging something that most probably is not worth fixing :D.

I will try out 2.3 in the near future 2.3 beta 1 didn't work for me yesterday, but I still have to investigate on that one.

Last but not least, thank you both for this awesome fast support!
Post Reply