Skip to content

[Graph Debug Executor] Add exception for profile with remote devices#8345

Closed
mehrdadh wants to merge 2 commits intoapache:mainfrom
mehrdadh:profile_exception
Closed

[Graph Debug Executor] Add exception for profile with remote devices#8345
mehrdadh wants to merge 2 commits intoapache:mainfrom
mehrdadh:profile_exception

Conversation

@mehrdadh
Copy link
Member

This PR:

  • Adds exception for profile function when using a remote device
  • Adds a test for profile with microTVM device which has xfail status for now until we fix this issue.

cc @areusch

@mehrdadh mehrdadh force-pushed the profile_exception branch from 65ad940 to 3cdd87e Compare June 25, 2021 21:11
self._profile = module["profile"]
graph_executor.GraphModule.__init__(self, module)
self._create_debug_env(graph_json_str, device)
self._device = device[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

i'm worried that the cpu device might not be first in the list. maybe we should just store a local flag e.g. self._has_remote_device = any(d.device_type >= base.RPC_SESS_MASK for d in device)

and use that?

Copy link
Contributor

@tkonolige tkonolige left a comment

Choose a reason for hiding this comment

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

I believe I tested profiling on remote devices and it worked. Could you provide the error you are getting when profiling on a remote device?

@areusch areusch added the status: need update need update based on feedbacks label Jul 20, 2021
@mehrdadh mehrdadh closed this Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: need update need update based on feedbacks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments