Maniphest T46207

Slow GPU bake and blown out baking cycles render
Closed, Resolved

Assigned To
Sergey Sharybin (sergey)
Authored By
Delo Lat (edisto)
Sep 22 2015, 12:00 PM
Tags
  • BF Blender
  • Cycles
Subscribers
Brecht Van Lommel (brecht)
Delo Lat (edisto)
Jonathan (VeloFX)
Sergey Sharybin (sergey)

Description

System Information
Card name: AMD Radeon (TM) R9 Fury Series
Card name: AMD FirePro W8100 (FireGL V)
Operating System: Windows Embedded 8.1 Industry Pro 64-bit (6.3, Build 9600) (9600.winblue_ltsb.150715-0840)
Processor: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz (12 CPUs), ~3.3GHz
Memory: 32768MB RAM

Blender Version
Broken: 2.7.6rc1 and 2.7.5.4

Short description of error
When baking in GPU compute am receiving blown out Ambient Occlusion and Normal maps. Works fine in CPU.
when baked with CPU: http://snag.gy/BlvA7.jpg
when baked with GPU: http://snag.gy/SsJI3.jpg

Exact steps for others to reproduce the error
Switch mode to cycles render. Add Suzanne smart uv unwrap her. Add image texture in node editor, and create and use a texture. Switch device to GPU compute in render properties. Switch Bake type to Ambient Occlusion or Normals.

Revisions and Commits

rC Cycles
rB Blender

Related Objects

Event Timeline

Delo Lat (edisto) created this task.Sep 22 2015, 12:00 PM
Delo Lat (edisto) raised the priority of this task from to 90.
Delo Lat (edisto) updated the task description.
Delo Lat (edisto) added a project: BF Blender.
Delo Lat (edisto) edited a custom field.
Delo Lat (edisto) added a subscriber: Delo Lat (edisto).
Delo Lat (edisto) added a comment.EditedSep 22 2015, 8:18 PM

I realized after posting that techs might not be familiar with baking. So I attached a premade file that just requires you to hit bake within the render properties under bake tab.

I'm guessing this bug probably has something to do with my Radeon Fury X.

  • Edit **

The moment I posted that comment I remembered I could go to system and use a single card. After checking It does it on both cards. So the Radeon Fury X and Firepro w8100.

Sergey Sharybin (sergey) lowered the priority of this task from 90 to Normal.Sep 23 2015, 12:18 PM
Sergey Sharybin (sergey) added a subscriber: Sergey Sharybin (sergey).

Can confirm OpemCL is producing totally wrong result. Not totally sure yet why, will need to have a closer look.

Sergey Sharybin (sergey) claimed this task.Sep 23 2015, 12:19 PM
Sergey Sharybin (sergey) added a project: Cycles.
Brecht Van Lommel (brecht) added a subscriber: Brecht Van Lommel (brecht).Feb 14 2016, 8:44 PM

Findings so far:

  • Baking with AA sample 1 works ok, only with multiple samples there is a problem.
  • Adding clFinish() between baking samples does not solve the issue (though we should add it)
  • Marking the output memory as MEM_READ_WRITE does not solve the issue (though we should do that)

Commenting out some parts of the code in the kernel seems to make it work, though I'm not sure if that's avoiding some kind of race condition, working around a compiler bug, or something else.

Brecht Van Lommel (brecht) added a subscriber: Jonathan (VeloFX).
Sergey Sharybin (sergey) changed the task status from Unknown Status to Resolved by committing rBd2bb0e660bde: Fix T46207: Slow OpenCL GPU bake and blown out baking Cycles render.May 31 2016, 5:48 PM
Sergey Sharybin (sergey) added a commit: rBd2bb0e660bde: Fix T46207: Slow OpenCL GPU bake and blown out baking Cycles render.
Sergey Sharybin (sergey) added a commit: rC78ab79ade677: Fix T46207: Slow OpenCL GPU bake and blown out baking Cycles render.Jun 8 2016, 11:20 AM