Cycles: oneAPI: use local memory for faster shader sorting #107994

Merged
Xavier Hallade merged 2 commits from Sirgienko/blender:oneapi_local_memory_sorting into main 2023-05-17 11:08:10 +02:00

With enabling of partitioned shader sorting for oneAPI backend (this functionality previous have been used only by Metal backend) I can see nice performance improvement on my machine with Intel® Arc™ A770 in benchmark scenes (at average I have got 8% performance improvement).

With enabling of partitioned shader sorting for oneAPI backend (this functionality previous have been used only by Metal backend) I can see nice performance improvement on my machine with Intel® Arc™ A770 in benchmark scenes (at average I have got 8% performance improvement).
Nikita Sirgienko added this to the 3.6 LTS milestone 2023-05-17 00:31:04 +02:00
Nikita Sirgienko added the
Module
Render & Cycles
label 2023-05-17 00:31:04 +02:00
Nikita Sirgienko self-assigned this 2023-05-17 00:31:04 +02:00
Nikita Sirgienko added 1 commit 2023-05-17 00:31:11 +02:00
Author
Member

In case of approval of this pull request I would prefer to keep initial 2 commit separated.

In case of approval of this pull request I would prefer to keep initial 2 commit separated.
Author
Member

@blender-bot package

@blender-bot package
Member

Package build started. Download here when ready.

Package build started. [Download here](https://builder.blender.org/download/patch/PR107994) when ready.
Nikita Sirgienko requested review from Brecht Van Lommel 2023-05-17 00:35:01 +02:00
Author
Member

@brecht, sorry for bothering you when there is with so little time before bcon3, but can you please take a look? This changes quite small, yet they are giving nice performance improvement (at my machine at least) and they also basically just mostly reuse already existing source code, so I think it is reasonable to have this changes in the Blender 3.6 LTS release.

@brecht, sorry for bothering you when there is with so little time before bcon3, but can you please take a look? This changes quite small, yet they are giving nice performance improvement (at my machine at least) and they also basically just mostly reuse already existing source code, so I think it is reasonable to have this changes in the Blender 3.6 LTS release.
Xavier Hallade requested review from Xavier Hallade 2023-05-17 07:45:45 +02:00
Xavier Hallade force-pushed oneapi_local_memory_sorting from da73fa57c2 to e2e7723aa9 2023-05-17 07:47:30 +02:00 Compare
Member

cuda compilation failed as it didn't like the ifdef in kernel arguments, I've pushed e2e7723aa9 that fixes it.

cuda compilation failed as it didn't like the ifdef in kernel arguments, I've pushed https://projects.blender.org/blender/blender/commit/e2e7723aa9d0a7acc6d484f37c4d6e33f8500684 that fixes it.
Xavier Hallade added this to the Render & Cycles project 2023-05-17 07:50:02 +02:00
Xavier Hallade refused to review 2023-05-17 07:50:53 +02:00
Xavier Hallade requested review from Xavier Hallade 2023-05-17 09:21:55 +02:00
Xavier Hallade approved these changes 2023-05-17 09:22:02 +02:00

@blender-bot package

@blender-bot package
Member

Package build started. Download here when ready.

Package build started. [Download here](https://builder.blender.org/download/patch/PR107994) when ready.
Sergey Sharybin approved these changes 2023-05-17 10:44:30 +02:00
Sergey Sharybin left a comment
Owner

The changes outside of the OneAPI seems and easy to re-iterate of we've missed something by accident. And that was the main reason why PR was not merged yesterday (while similarly sized changes were still happening).

So while the timing is unideal, I think it is acceptable.

The changes outside of the OneAPI seems and easy to re-iterate of we've missed something by accident. And that was the main reason why PR was not merged yesterday (while similarly sized changes were still happening). So while the timing is unideal, I think it is acceptable.
Xavier Hallade merged commit bafd82c9c1 into main 2023-05-17 11:08:10 +02:00
Nikita Sirgienko deleted branch oneapi_local_memory_sorting 2023-05-17 16:22:10 +02:00
Brecht Van Lommel removed this from the Render & Cycles project 2023-05-24 19:05:21 +02:00
Howard Trickey referenced this issue from a commit 2023-05-29 02:51:39 +02: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 project
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#107994
No description provided.