Skip to content

[TorchTidy] Add pattern to detect matrix alignment in fp16 AND reorganize benchmark structure#82248

Closed
davidchencsl wants to merge 15 commits intogh/davidchencsl/26/basefrom
gh/davidchencsl/26/head
Closed

[TorchTidy] Add pattern to detect matrix alignment in fp16 AND reorganize benchmark structure#82248
davidchencsl wants to merge 15 commits intogh/davidchencsl/26/basefrom
gh/davidchencsl/26/head

Conversation

@davidchencsl
Copy link
Contributor

@davidchencsl davidchencsl commented Jul 26, 2022

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Jul 26, 2022

🔗 Helpful links

✅ No Failures (5 Pending)

As of commit 809857b (more details on the Dr. CI page):

Expand to see more

💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@davidchencsl davidchencsl changed the title Add pattern to detect matrix alignment in fp16 [TorchTidy] Add pattern to detect matrix alignment in fp16 AND reorganize benchmark structure Jul 26, 2022
@davidchencsl davidchencsl requested a review from robieta July 26, 2022 20:40
@davidchencsl
Copy link
Contributor Author

@davidchencsl has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

… AND reorganize benchmark structure"

Differential Revision: [D38173079](https://our.internmc.facebook.com/intern/diff/D38173079)

[ghstack-poisoned]
davidchencsl added a commit that referenced this pull request Jul 26, 2022
ghstack-source-id: 308b7db
Pull Request resolved: #82248
@davidchencsl
Copy link
Contributor Author

@davidchencsl has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

… AND reorganize benchmark structure"

Differential Revision: [D38173079](https://our.internmc.facebook.com/intern/diff/D38173079)

[ghstack-poisoned]
@davidchencsl
Copy link
Contributor Author

@davidchencsl has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

… AND reorganize benchmark structure"

Differential Revision: [D38173079](https://our.internmc.facebook.com/intern/diff/D38173079)

[ghstack-poisoned]
… AND reorganize benchmark structure"

Differential Revision: [D38173079](https://our.internmc.facebook.com/intern/diff/D38173079)

[ghstack-poisoned]
@davidchencsl
Copy link
Contributor Author

@davidchencsl has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

… AND reorganize benchmark structure"

Differential Revision: [D38173079](https://our.internmc.facebook.com/intern/diff/D38173079)

[ghstack-poisoned]
@davidchencsl
Copy link
Contributor Author

@davidchencsl has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

… AND reorganize benchmark structure"

Differential Revision: [D38173079](https://our.internmc.facebook.com/intern/diff/D38173079)

[ghstack-poisoned]
… AND reorganize benchmark structure"

Differential Revision: [D38173079](https://our.internmc.facebook.com/intern/diff/D38173079)

[ghstack-poisoned]
… AND reorganize benchmark structure"

[ghstack-poisoned]
@davidchencsl davidchencsl added the ciflow/trunk Trigger trunk jobs on your pull request label Jul 28, 2022
… AND reorganize benchmark structure"

[ghstack-poisoned]
@davidchencsl
Copy link
Contributor Author

@davidchencsl has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

… AND reorganize benchmark structure"


Differential Revision: [D38263206](https://our.internmc.facebook.com/intern/diff/D38263206)

[ghstack-poisoned]
… AND reorganize benchmark structure"

[ghstack-poisoned]
… AND reorganize benchmark structure"

[ghstack-poisoned]
Copy link
Contributor

@robieta robieta left a comment

Choose a reason for hiding this comment

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

A couple minor nits and this really should have been two PRs, but overall looks good.

return f"{time_ns:.2f} {unit}"
time_ns //= 1000

assert hasattr(self, 'benchmark'), 'Please implement benchmark()'
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a base benchmark method that raises NotImplementedError?

Copy link
Contributor Author

@davidchencsl davidchencsl Aug 3, 2022

Choose a reason for hiding this comment

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

I need to check if we have implemented benchmark in summary(), I haven't find a better way to solve this. Also we cannot try...except because we don't want to run benchmark twice.

… AND reorganize benchmark structure"

[ghstack-poisoned]
… AND reorganize benchmark structure"

[ghstack-poisoned]
@davidchencsl
Copy link
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge job. Check the current status here

@github-actions
Copy link
Contributor

github-actions bot commented Aug 3, 2022

Hey @davidchencsl.
You've committed this PR, but it does not have both a 'release notes: ...' and 'topics: ...' label. Please add one of each to the PR. The 'release notes: ...' label should represent the part of PyTorch that this PR changes (fx, autograd, distributed, etc) and the 'topics: ...' label should represent the kind of PR it is (not user facing, new feature, bug fix, perf improvement, etc). The list of valid labels can be found here for the 'release notes: ...' and here for the 'topics: ...'.
For changes that are 'topic: not user facing' there is no need for a release notes label.

facebook-github-bot pushed a commit that referenced this pull request Aug 4, 2022
…nize benchmark structure (#82248) (#82248)

Summary:
Pull Request resolved: #82248
Approved by: https://github.com/robieta

Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/54064ad198be1402a5348e4c4dd179226b657995

Reviewed By: kit1980

Differential Revision: D38424962

Pulled By: davidchencsl

fbshipit-source-id: 723191489a14b5dd399c12e97997f4c1f93ea4af
@facebook-github-bot facebook-github-bot deleted the gh/davidchencsl/26/head branch August 7, 2022 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request cla signed Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants