Skip to content

Conversation

@mlunar-meta
Copy link
Contributor

Summary:
Refactor common Scuba file utilities into a shared library that can be used by both
NCCLX DataTable and MCCL McclDataTable:

  • Add ScubaFileUtils.h/.cpp with getScubaFileName(), createScubaFile(), and getTimestamp()
  • Add scuba_file_utils BUCK target with shared dependencies
  • Add data_sink BUCK target for DataSink.h header-only library
  • Update DataTable.cc to use the new ScubaFileUtils functions
  • Update data_table BUCK target to depend on scuba_file_utils

This enables code reuse and eliminates duplicate implementations of file-related
utilities between the NCCLX and MCCL logging systems.

Differential Revision: D92017771

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Feb 2, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 2, 2026

@mlunar-meta has exported this pull request. If you are a Meta employee, you can view the originating Diff in D92017771.

Summary:
Pull Request resolved: meta-pytorch#521

Refactor common Scuba file utilities into a shared library that can be used by both
NCCLX DataTable and MCCL McclDataTable:

- Add ScubaFileUtils.h/.cpp with getScubaFileName(), createScubaFile(), and getTimestamp()
- Add scuba_file_utils BUCK target with shared dependencies
- Add data_sink BUCK target for DataSink.h header-only library
- Update DataTable.cc to use the new ScubaFileUtils functions
- Update data_table BUCK target to depend on scuba_file_utils

This enables code reuse and eliminates duplicate implementations of file-related
utilities between the NCCLX and MCCL logging systems.

Differential Revision: D92017771
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant