Repository navigation
Conversation
|
Hi @trichmo! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
Thanks, @trichmo! I think adding this to the public API is useful. Let's add some unit tests for the new API. |
|
@scotts It doesn't seem as though thread safety is something kineto is supporting. I had some tests for that but have removed them - if you'd like me to update for thread safety for registerlogger, I have some stashed changes but they touch existing code a bit instead of just an additive pr. |
|
@scotts Can you rerun CI? |
|
@trichmo, can you pull the latest to get the CI improvements? |
6a2a430 to
019291c
Compare
|
Thanks for the tests! I think we should do a lot less, testing, though. This is a simple addition, I think we should just keep:
The rest, I think, are redundant or test unrelated functionality. |
|
Makes sense, trimmed it down. Thanks! |
|
@scotts gentle ping if things look okay, could you kick off CI? |
|
@scotts has imported this pull request. If you are a Meta employee, you can view this in D109304131. |
|
@trichmo, this is causing some internal build failures because we're including |
Includes the following commits: - Serialize CUDA/ROCm JSON directly from typed metadata (pytorch/kineto#1455) ab3d5e5 - Address missing OSS license headers (pytorch/kineto#1456) 6662873 - Remove support for old versions of PTI. Rework of PTI error handling. (pytorch/kineto#1405) d5d5c01 - Add MetadataDict for nested metadata fields (pytorch/kineto#1454) 510fde2 - Update XPU test env config (pytorch/kineto#1450) 5d8f827 - Deselect XPU-failing TestProfilerDevice CPU tests (pytorch/kineto#1451) eb66185 - Escape LOG messages in output_json.cpp (pytorch/kineto#1453) 9f6b3f7 - Daily `arc lint --take CLANGFORMAT` (pytorch/kineto#1452) c4eea6b - Add a visitor class for JSON serialization (pytorch/kineto#1449) b12cc99 - Enable OVERHEAD activity (pytorch/kineto#1441) 3980198 - Make TypedMetadata a visitor interface instead (pytorch/kineto#1448) 594e334 - Avoid CI OOMs by limiting parallel compile jobs (pytorch/kineto#1447) d5f7009 - Adds TypedMetadata.h to get_libkineto_public_headers (pytorch/kineto#1439) 774d10c - FIx build error by removing unused param (pytorch/kineto#1445) 8341a9e - Prefix internal controller sync/async methods (pytorch/kineto#1438) b1a1f1e - Expose ActivityLoggerFactory via public API (pytorch/kineto#1414) 8279dc0 - Guard GenericActivityProfiler teardown against null traceBuffers_ (pytorch/kineto#1443) b7a7b0e - Finalize pending trace on async profiler teardown (pytorch/kineto#1442) b0ddf1b Authored-with: Claude (AI assistant) Pull Request resolved: #188550 Approved by: https://github.com/scotts
Includes the following commits: - Serialize CUDA/ROCm JSON directly from typed metadata (pytorch/kineto#1455) ab3d5e5 - Address missing OSS license headers (pytorch/kineto#1456) 6662873 - Remove support for old versions of PTI. Rework of PTI error handling. (pytorch/kineto#1405) d5d5c01 - Add MetadataDict for nested metadata fields (pytorch/kineto#1454) 510fde2 - Update XPU test env config (pytorch/kineto#1450) 5d8f827 - Deselect XPU-failing TestProfilerDevice CPU tests (pytorch/kineto#1451) eb66185 - Escape LOG messages in output_json.cpp (pytorch/kineto#1453) 9f6b3f7 - Daily `arc lint --take CLANGFORMAT` (pytorch/kineto#1452) c4eea6b - Add a visitor class for JSON serialization (pytorch/kineto#1449) b12cc99 - Enable OVERHEAD activity (pytorch/kineto#1441) 3980198 - Make TypedMetadata a visitor interface instead (pytorch/kineto#1448) 594e334 - Avoid CI OOMs by limiting parallel compile jobs (pytorch/kineto#1447) d5f7009 - Adds TypedMetadata.h to get_libkineto_public_headers (pytorch/kineto#1439) 774d10c - FIx build error by removing unused param (pytorch/kineto#1445) 8341a9e - Prefix internal controller sync/async methods (pytorch/kineto#1438) b1a1f1e - Expose ActivityLoggerFactory via public API (pytorch/kineto#1414) 8279dc0 - Guard GenericActivityProfiler teardown against null traceBuffers_ (pytorch/kineto#1443) b7a7b0e - Finalize pending trace on async profiler teardown (pytorch/kineto#1442) b0ddf1b Authored-with: Claude (AI assistant) Pull Request resolved: pytorch#188550 Approved by: https://github.com/scotts
Includes the following commits: - Serialize CUDA/ROCm JSON directly from typed metadata (pytorch/kineto#1455) ab3d5e5 - Address missing OSS license headers (pytorch/kineto#1456) 6662873 - Remove support for old versions of PTI. Rework of PTI error handling. (pytorch/kineto#1405) d5d5c01 - Add MetadataDict for nested metadata fields (pytorch/kineto#1454) 510fde2 - Update XPU test env config (pytorch/kineto#1450) 5d8f827 - Deselect XPU-failing TestProfilerDevice CPU tests (pytorch/kineto#1451) eb66185 - Escape LOG messages in output_json.cpp (pytorch/kineto#1453) 9f6b3f7 - Daily `arc lint --take CLANGFORMAT` (pytorch/kineto#1452) c4eea6b - Add a visitor class for JSON serialization (pytorch/kineto#1449) b12cc99 - Enable OVERHEAD activity (pytorch/kineto#1441) 3980198 - Make TypedMetadata a visitor interface instead (pytorch/kineto#1448) 594e334 - Avoid CI OOMs by limiting parallel compile jobs (pytorch/kineto#1447) d5f7009 - Adds TypedMetadata.h to get_libkineto_public_headers (pytorch/kineto#1439) 774d10c - FIx build error by removing unused param (pytorch/kineto#1445) 8341a9e - Prefix internal controller sync/async methods (pytorch/kineto#1438) b1a1f1e - Expose ActivityLoggerFactory via public API (pytorch/kineto#1414) 8279dc0 - Guard GenericActivityProfiler teardown against null traceBuffers_ (pytorch/kineto#1443) b7a7b0e - Finalize pending trace on async profiler teardown (pytorch/kineto#1442) b0ddf1b Authored-with: Claude (AI assistant) Pull Request resolved: pytorch#188550 Approved by: https://github.com/scotts
This is a working example of the changes necessary to expose registering a LoggerFactory for custom output formatting of Kineto events on save.