Skip to content

[GPU] Add CMake option for incremental oneDNN builds - #36696

Open
sungeunk wants to merge 1 commit into
openvinotoolkit:masterfrom
sungeunk:onednn_increase_build
Open

[GPU] Add CMake option for incremental oneDNN builds#36696
sungeunk wants to merge 1 commit into
openvinotoolkit:masterfrom
sungeunk:onednn_increase_build

Conversation

@sungeunk

@sungeunk sungeunk commented Jul 3, 2026

Copy link
Copy Markdown
Contributor
  • With -DOV_ONEDNN_GPU_BUILD_ALWAYS=ON, changes made to oneDNN are rebuilt and reflected during the build.
  • By default, the build behavior remains unchanged.

@sungeunk
sungeunk requested review from a team as code owners July 3, 2026 01:55
@sungeunk sungeunk added the category: GPU OpenVINO GPU plugin label Jul 3, 2026
@github-actions github-actions Bot added the category: build OpenVINO cmake script / infra label Jul 3, 2026
set(ONEDNN_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/onednn_gpu_build")
set(ONEDNN_INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/onednn_gpu_install" CACHE PATH "Installation path for oneDNN GPU library")
set(ONEDNN_PREFIX_DIR "${CMAKE_CURRENT_BINARY_DIR}/onednn_gpu_root")
set(OV_ONEDNN_GPU_BUILD_ALWAYS OFF CACHE BOOL "Always run oneDNN GPU external build step (useful for local development)")

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.

Suggested change
set(OV_ONEDNN_GPU_BUILD_ALWAYS OFF CACHE BOOL "Always run oneDNN GPU external build step (useful for local development)")
set(GPU_ONEDNN_BUILD_ALWAYS OFF CACHE BOOL "Always run oneDNN GPU external build step. It allows incremental build of oneDNN when it is changed.")

@p-durandin p-durandin added this to the 2026.3 milestone Jul 3, 2026
@michal-miotk

Copy link
Copy Markdown
Contributor

LGTM

@p-durandin p-durandin modified the milestones: 2026.3, 2026.4 Jul 15, 2026
@p-durandin

Copy link
Copy Markdown
Contributor

@sungeunk please apply review remarks and resolve conflicts to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: build OpenVINO cmake script / infra category: GPU OpenVINO GPU plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants