Skip to content

Serialize IR and use VCL API to do offline compilation #30732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

XinWangIntel
Copy link
Contributor

When compiler type is MLIR, will open npu_driver_compiler lib and do compilation.

  • Added npu_driver_compiler.h with detailed type definitions for VCL handles, enums, and structs, such as vcl_compiler_handle_t, vcl_result_t, and vcl_device_desc_t, to support the VCL API.

  • Added a new vcl_api.hpp file to define and wrap VCL API functions, enabling dynamic symbol resolution and providing a singleton-based interface for accessing the API.

  • Introduced VCLCompilerImpl class to implement compiler-related operations using the VCL API, including methods for compilation, querying, and profiling.

  • Moved serialization methods (serializeIOInfo, serializeIR, and serializeConfig) from DriverCompilerAdapter to the ir_serialize.cpp

Tickets:

  • ticket-id

@github-actions github-actions bot added the category: NPU OpenVINO NPU plugin label May 27, 2025
@XinWangIntel XinWangIntel force-pushed the serialize-on-plugin-adapter branch from 973bdc5 to 9979810 Compare May 30, 2025 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: NPU OpenVINO NPU plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant