Cycles regression testing for GPU devices #82193

Open
opened 2020-10-28 14:55:31 +01:00 by Brecht Van Lommel · 8 comments

Background

The Cycles automated regression tests so far only ran on the CPU.

With some environment flags it was possible to execute a script that runs them on other devices, but this is cumbersome. The goal of this task is to add a CMake option to enable running the regression tests on GPU devices in addition to CPU devices.

The reference images are currently only valid for CPU rendering. Keeping differeing reference images updated will have to wait until we have CI infrastructure for testing GPU rendering. For now we can do a few things:

  • Do nothing and manually check when tests fail
  • Increase difference thresholds for tests that only differ a little
  • Disable failing tests for GPU testing

Status

  • CYCLES_TEST_DEVICES option to specify devices to test
  • Blacklist failing CUDA tests
  • Blacklist failing OPTIX tests
  • Verify HIP tests are working
  • Enable GPU testing on the buildbot
**Background** The Cycles automated regression tests so far only ran on the CPU. With some environment flags it was possible to execute a script that runs them on other devices, but this is cumbersome. The goal of this task is to add a CMake option to enable running the regression tests on GPU devices in addition to CPU devices. The reference images are currently only valid for CPU rendering. Keeping differeing reference images updated will have to wait until we have CI infrastructure for testing GPU rendering. For now we can do a few things: * Do nothing and manually check when tests fail * Increase difference thresholds for tests that only differ a little * Disable failing tests for GPU testing **Status** - [x] CYCLES_TEST_DEVICES option to specify devices to test - [x] Blacklist failing CUDA tests - [x] Blacklist failing OPTIX tests - [ ] Verify HIP tests are working - [ ] Enable GPU testing on the buildbot
Author
Owner

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Owner

Added subscriber: @brecht

Added subscriber: @brecht
Brecht Van Lommel self-assigned this 2020-10-28 14:55:56 +01:00
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker

This issue was referenced by dd391d38f6

This issue was referenced by dd391d38f6ef2165bc76a1e69da52e1bd1208e53

This issue was referenced by f75b09e7e6

This issue was referenced by f75b09e7e6b3ed9345993455ecab8a6d1690179f

This issue was referenced by 2a430a670c

This issue was referenced by 2a430a670cc833033f2f140b017b2004003d49a2
Author
Owner

There is now an initial implementation of this, with a CYCLES_TEST_DEVICES cmake variable that you can CUDA, OPTIX, OPENCL add to.

CUDA and OptiX tests are now passing after blacklisting a bunch of tests that show differences. Most of them are known limitations, a few would be worth investigating as potential bugs. The time for running the tests can be quite long compared to CPU currently, it's likely possible to optimize this with bigger tiles. For OptiX the hair test takes multiple minutes, that's likely a bug somewhere.

For OpenCL, this is not very usable at all, as the kernel is recompiled many times. Completing the tests likely takes hours because of that, I have no finished it. With my AMD card some of the tests are also causing BSoD, so I have not completed running them.

There is now an initial implementation of this, with a `CYCLES_TEST_DEVICES` cmake variable that you can `CUDA`, `OPTIX`, `OPENCL` add to. CUDA and OptiX tests are now passing after blacklisting a bunch of tests that show differences. Most of them are known limitations, a few would be worth investigating as potential bugs. The time for running the tests can be quite long compared to CPU currently, it's likely possible to optimize this with bigger tiles. For OptiX the hair test takes multiple minutes, that's likely a bug somewhere. For OpenCL, this is not very usable at all, as the kernel is recompiled many times. Completing the tests likely takes hours because of that, I have no finished it. With my AMD card some of the tests are also causing BSoD, so I have not completed running them.
Member

Added subscriber: @pmoursnv

Added subscriber: @pmoursnv
Brecht Van Lommel removed their assignment 2021-10-04 12:10:29 +02:00
Brecht Van Lommel added this to the Render & Cycles project 2023-02-07 19:08:06 +01:00
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:02:00 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#82193
No description provided.