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

Draft: Enable observers on execution #13013

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

Conversation

hseok-oh
Copy link
Contributor

@hseok-oh hseok-oh commented May 17, 2024

Create all observers on compile, and register enabled observers on execution, not compilation.
It is more flexible and allows for more dynamic observation (ex. profile, dump on demand)

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh hseok82.oh@samsung.com

@hseok-oh hseok-oh added the PR/NO MERGE Please don't merge. I'm still working on this :) label May 17, 2024
@hseok-oh

This comment was marked as outdated.

Comment on lines 583 to 584
new exec::DataflowExecutor{std::move(lowered_graph), std::move(backend_contexts), tensor_regs,
std::move(code_map), tracing_ctx};
if (options->he_profiling_mode)
{
std::vector<const backend::Backend *> backends;
for (const auto &pair : backend_contexts)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was bug: use backend_contexts after std::move(backend_contexts)

@hseok-oh
Copy link
Contributor Author

Update: create all observers on compile, check option on execution

@hseok-oh hseok-oh force-pushed the move_observer_creation branch 3 times, most recently from 3286095 to f99acec Compare May 29, 2024 02:02
@hseok-oh
Copy link
Contributor Author

  • Introduce execution context -> pass to executor
  • Introduce execution & prepare config API -> config compile option & execution option
  • Change MINMAX_FILEPATH and TRACE_FILEPATH environment variable usage -> enable/disable only, fixed filename
  • WORKSPACE_DIR environment variable config for workspace dir

@hseok-oh hseok-oh force-pushed the move_observer_creation branch 4 times, most recently from 34453df to 3087850 Compare June 3, 2024 03:11
@hseok-oh hseok-oh changed the title Draft: Create observers on execution Draft: Enable observers on execution Jun 12, 2024
@hseok-oh hseok-oh force-pushed the move_observer_creation branch 3 times, most recently from 7c464ae to aa882d5 Compare June 12, 2024 06:59
@hseok-oh hseok-oh added the PR/NO TEST Tell CI to not run test label Jun 13, 2024
Create and register observers on execution, not compilation.
It is more flexible and allows for more dynamic observation (ex. profile, dump on demand)

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>

Remove compile option: minmax_filepath, trace_filepath

create on compile, check usage on execution

move file creation

 introduce execution config and context

Use workspace in compiler option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR/NO MERGE Please don't merge. I'm still working on this :) PR/NO TEST Tell CI to not run test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant