Skip to content

[CI] Add Windows Blender test to nightly#21718

Draft
sarnex wants to merge 1 commit intosyclfrom
sarnex/blender
Draft

[CI] Add Windows Blender test to nightly#21718
sarnex wants to merge 1 commit intosyclfrom
sarnex/blender

Conversation

@sarnex
Copy link
Copy Markdown
Contributor

@sarnex sarnex commented Apr 9, 2026

This PR introduces a real world test into CI.

The idea is we build and run Blender using the just-built SYCL compiler (initially, only the nightly) and then run an exmample workflow on a (multi) GPU system.

The first version of this PR only tracks pass/fail, but in the future we could add a performance threshold to cause a fail.
First we build OIDN and Embree, both of which use SYCL and DPC++. Then we build Blender with the just-built OIDN, Embree and SYCL compiler.

The steps of this workflow (as in, what to do at a high level) was developed with help from internal Blender experts.

Run in nightly example: https://github.com/intel/llvm/actions/runs/24317863959

Entire workflow takes ~10 minutes.

Comment on lines +38 to +43
run: |
echo "SCCACHE_DIR=$env:CCACHE_DIR_INPUT" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "SCCACHE_MAXSIZE=10G" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
# Wthout this we get a linking error about not being able to find sycl-devicelib-host.lib
echo "LIB=$env:LIB;$env:SYCL_DIR_INPUT\lib" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CMAKE_EXTRA_ARGS=-DWITH_WINDOWS_SCCACHE=ON" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
Copy link
Copy Markdown
Contributor Author

@sarnex sarnex Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KornevNikita Do we need these checks to pass before merging PRs or are we allowed to ignore them?

This warning seems to suggest we aren't allowed to modify any environment variables with non-static strings, and we have to set these vars to get things to work. We already do that heavily in other workflows, it's just the checks were added after those workflows were written. Thanks

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is annoying, I suggest we ignore these :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that answer, thanks :P

Comment on lines +38 to +43
run: |
echo "SCCACHE_DIR=$env:CCACHE_DIR_INPUT" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "SCCACHE_MAXSIZE=10G" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
# Wthout this we get a linking error about not being able to find sycl-devicelib-host.lib
echo "LIB=$env:LIB;$env:SYCL_DIR_INPUT\lib" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CMAKE_EXTRA_ARGS=-DWITH_WINDOWS_SCCACHE=ON" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
Comment on lines +38 to +43
run: |
echo "SCCACHE_DIR=$env:CCACHE_DIR_INPUT" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "SCCACHE_MAXSIZE=10G" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
# Wthout this we get a linking error about not being able to find sycl-devicelib-host.lib
echo "LIB=$env:LIB;$env:SYCL_DIR_INPUT\lib" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CMAKE_EXTRA_ARGS=-DWITH_WINDOWS_SCCACHE=ON" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
Comment on lines +38 to +43
run: |
echo "SCCACHE_DIR=$env:CCACHE_DIR_INPUT" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "SCCACHE_MAXSIZE=10G" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
# Wthout this we get a linking error about not being able to find sycl-devicelib-host.lib
echo "LIB=$env:LIB;$env:SYCL_DIR_INPUT\lib" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CMAKE_EXTRA_ARGS=-DWITH_WINDOWS_SCCACHE=ON" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
@sarnex sarnex force-pushed the sarnex/blender branch 2 times, most recently from 04d162e to d8e53e1 Compare April 10, 2026 18:34
Signed-off-by: Nick Sarnie <nick.sarnie@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants