WIP: Build: Shared Libraries Not Included in Buildtime Platform Vars #115790
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#115790
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Jeroen-Bakker:platform/fix-sycl-bundled-libraries"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When building on Linux Sycl shared libraries could not be found when
using the PLATORM_ENV_BUILD* variables. On Windows Sycl and
OIIO, Embree and cycles shared libraries where not available.
Cause: Sycl library uses a custom way of bundling its
libraries. This updated the PLATFORM_BUNDLED_LIBRARIES, but didn't
update PLATFORM_BUNDLED_LIBRARY_DIRS.
PLATFORM_BUNDLIED_LIBRARY_DIRS is used to populate
PLATFORM_ENV_BUILD_DIRS and PLATFORM_ENV_BUILD.
On Windows the search path is hard coded.
Build: Sycl Not Included in Buildtime Platform Varsto WIP: Build: Shared Libraries Not Included in Buildtime Platform Vars@ -1195,6 +1195,7 @@ if(WITH_CYCLES AND (WITH_CYCLES_DEVICE_ONEAPI OR (WITH_CYCLES_EMBREE AND EMBREE_
unset(_sycl_pi_runtime_libraries_glob)
list(APPEND PLATFORM_BUNDLED_LIBRARIES ${_sycl_runtime_libraries})
list(APPEND PLATFORM_BUNDLED_LIBRARY_DIRS ${SYCL_ROOT_DIR/bin/})
Windows uses a different approach need to adjust it in PLATFORM_ENV_BUILD_DIRS directly.
while i do not mind the changes i do like to understand better what lead to this fix, the only code that uses sycl afaik is loaded on demand and not exercised during any tests. what problem did you run into and how?
While this seems OK, there should be code-comments (similar to the ones in the PR) explaining why these paths need to be added.
Yes it is related to building shading builder in current form. (related to #115751, bigger picture #115748)
I used
make release
only enablingWITH_GPU_BUILDTIME_SHADER_BUILDER=On
on both platforms. Goal is to get shader builder in its current form to execute correctly and reducing the stubs file. Shader builder doesn't actually require many dependencies, the way how the libraries are setup in Blender with many cyclic dependencies between them it. Shader builder requiresblender::Vector
,blender::Map
from BLI, being able to create a headless context from
GHOST
, soGHOST_System
andGHOST_Context
related classesWhen we ditch OpenGL, we can remove the dependency with GHOST as Metal and Vulkan can rely on tools like shaderc/glslc and its MSL counterpart. Experiments executed during #113938 shows the glslc cannot compile OpenGL glsl files due to dialect differences (mostly binding related)
When checking the dependecies with
cmake . --graphviz
, I detected thatbf_python
has a direct connection with cycles, which would then try to find the Sycl dependecy at link time. When starting shader builder on windows it only starts when all the associated dll's can be found.When running
shader_builder.exe test.hh
popup will appear for all the missing libs, perhaps there is a way that this can be suppressed.In order to use shader_builder at this moment on Linux, the proposed change in this patch is needed. For windows there is also another change needed as somehow the shader_builder includes GHOST_Types.h which requires vulkan includes. Even when provided it cannot find it. Even when VS Studio shows that the include path is set correct. This can also be fixed by replacing the vulkan structs require for swapchains to our own types.
I build main with default settings on windows, with the only exceptions being
WITH_GPU_BUILDTIME_SHADER_BUILDER=ON
since that's the app you are having issues with, andWITH_VULKAN_BACKEND=OFF
since shaderbuilder has a null deref in its vulkan codepath in main.i build against svn libs r63582 and it ran just fine? not seeing any sycl related issues?
some peculiar behaviour however: it clearly ran without issues, but it didn't actually generate that
K:/BlenderGit/2019_ninja_tests/source/blender/gpu/shader_baked.hh
file even though we told cmake that we would.Closing this pull request as the error was in a local branch where I removed all stubs. Windows require those stubs and somehow doesn't need these DLLs to be loaded.
Pull request closed