-
Notifications
You must be signed in to change notification settings - Fork 62
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
add support to metrics calculation #196
base: main
Are you sure you want to change the base?
Conversation
@shengfukevin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: Add support to metrics calculation. 1. Iteration E2E time 2. bandwidth This is the copy of #195 for importing it into Meta. Differential Revision: D68038126 Pulled By: shengfukevin
7af31e6
to
410aae0
Compare
@shengfukevin has updated the pull request. You must reimport the pull request before landing. |
This pull request was exported from Phabricator. Differential Revision: D68038126 |
and not len(args.output_path) | ||
): | ||
raise ValueError('"--output-path" is not set for profiler trace dumping') | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you comment out this check here?
_torch_profiler = None | ||
|
||
|
||
def startProfiler( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where to invoke this?
return True | ||
else: | ||
logger.debug("Internal profiler is not available, skip...") | ||
logger.debug("GPU Trace Profiler: Fail to start") | ||
return False | ||
|
||
|
||
def sampleProfiler(stop: bool = False) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where to invoke this function with stop=true?
Hi, @shengfukevin |
Add support to metrics calculation.
This is the copy of #195 for importing it into Meta.