-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Track CPU stats with DeviceStatsMonitor #11795
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
Merged
kaushikb11
merged 62 commits into
Lightning-AI:master
from
EricWiener:feature/auto-track-cpu-stats
May 10, 2022
Merged
Changes from all commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
9188cbe
Add cpu metrics to cpu accelerator
EricWiener efd5d3b
Add cpu metrics to device stats monitor
EricWiener 29f918d
Add tests to make sure cpu stats are added correctly
EricWiener dbb6779
Check psutil availability before running
EricWiener 54a70e3
Add cpu_ prefix to all logged cpu values
EricWiener 47002e5
Asserting CPU metric keys aren't in GPU only logger
EricWiener 17d48d7
Rename to _get_and_log_device_stats
EricWiener edb93ab
Addd CPUDeviceStatsEnum
EricWiener 06dd8c4
Fix mypy issues
EricWiener 3bffb48
CHange cpu metrics enum to constant str
EricWiener 74e9069
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 317c354
Make CPU metric constants private
EricWiener 10029b9
Update CPU metric imports
EricWiener 14cae03
Update docstring and debugging.rst
EricWiener e187826
Update docstring and debugging.rst
EricWiener 23d4260
Replace metrics.keys() w metrics
EricWiener c245ff1
Updated GPU tests
EricWiener 43ce53e
Clean up comments + strings
EricWiener 57eb885
Updated GPU metrics that are checked
EricWiener 374d1ab
Updated GPU metric key
EricWiener 5012b8c
Add back-ticks around code in error message + docs
EricWiener c7816bf
Parameterized torch + cpu tests and updated docstrings
EricWiener 73d38fb
Only run GPU torch metrics logged for > 1.8
EricWiener ea0765e
update test
rohitgr7 5d1c0bc
Remove mocking comment + reduce steps
EricWiener 0e90200
Update change log
EricWiener 4e54f32
Update docs
kaushikb11 c6864de
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4ccf4d7
Update cpu stats logging logic
kaushikb11 ce6be7f
fix errors
kaushikb11 629bd29
Update docstring
kaushikb11 59453d6
Update DeviceStatsMonitor and tests
kaushikb11 e97ab31
Update RunIf
kaushikb11 ae4a2d9
Update tests
kaushikb11 33c2bf4
Self review
carmocca 26b43c4
Refactor test
carmocca 56afcfb
Simplify tests
carmocca b3f0b81
Convert global to local
carmocca d540a19
Fix tests
kaushikb11 6569d88
Merge branch 'master' into feature/auto-track-cpu-stats
kaushikb11 9c4bb1f
Update tests/callbacks/test_device_stats_monitor.py
kaushikb11 ae4c99f
Update pytorch_lightning/callbacks/device_stats_monitor.py
kaushikb11 f50d0a7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5a71600
Address reviews
kaushikb11 08d4ed2
Merge branch 'feature/auto-track-cpu-stats' of https://github.com/Eri…
kaushikb11 a3aa1f5
Update pytorch_lightning/callbacks/device_stats_monitor.py
kaushikb11 6d136fb
Update docs/source/tuning/profiler_basic.rst
kaushikb11 941c630
Address Rohit's comments
carmocca fd45c8d
Address reviews
kaushikb11 941315e
Update pytorch_lightning/callbacks/device_stats_monitor.py
kaushikb11 25b8c5e
Update pytorch_lightning/accelerators/cpu.py
kaushikb11 b392415
FIx tpu tests
kaushikb11 21dd440
Merge branch 'feature/auto-track-cpu-stats' of https://github.com/Eri…
kaushikb11 01430e2
Merge branch 'master' into feature/auto-track-cpu-stats
carmocca 7f64889
TPU test
kaushikb11 41cb8eb
Merge branch 'master' into feature/auto-track-cpu-stats
kaushikb11 f06cc07
only on fit
rohitgr7 2ef6555
Fix test
kaushikb11 f394a1e
Fix tpu tests
kaushikb11 e90d3f2
Merge branch 'master' into feature/auto-track-cpu-stats
kaushikb11 c17bf69
Fix tests
kaushikb11 a052a38
Fix tests
kaushikb11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.