Skip to content
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

Environment variables to control MLIR execution #154

Merged
merged 5 commits into from
Jul 26, 2024
Merged

Conversation

slyalin
Copy link
Owner

@slyalin slyalin commented Jul 26, 2024

Introducing a few environment variables to control MLIR stack in run-time. All environment variables have the prefix OV_MLIR_ and are enabled/disabled by setting values 1, true, ON and 0, false, OFF correspondingly. Values are case insensitive.

  • OV_MLIR: Enables MLIR stack. When disabled the execution is the same as in vanilla OpenVINO. Default: ON.
  • OV_MLIR_TPP: Enables TPP-MLIR. OpenVINO should be built with TPP-MLIR support to be enabled by this variable. Default: ON if built with TPP-MLIR, OFF if built without TPP-MLIR. If OpenVINO is built without TPP-MLIR and the variable is set to enable it, a run-time exception will be thrown.
  • OV_MLIR_DEBUG: Enables debug output in MLIR stack. Default: OFF. Earlier it was always enabled, now it should be enabled explicitly.

@slyalin
Copy link
Owner Author

slyalin commented Jul 26, 2024

@adam-smnk, you will find it useful to run benchmarks without rebuilds and compare everything: OV vs. MLIR upstream vs. TPP-MLIR.

@slyalin slyalin requested a review from adam-smnk July 26, 2024 14:42
Copy link
Collaborator

@adam-smnk adam-smnk left a comment

Choose a reason for hiding this comment

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

Looks good, thanks

@slyalin slyalin merged commit c793696 into mlir Jul 26, 2024
14 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants