Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions hyperactor_mesh/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,25 @@ pub mod test_utils;
mod testresource;
pub mod v1;

// Generated build information module
#[cfg(fbcode_build)]
#[path = "../build_info.rs"]
pub mod build_info;

pub use actor_mesh::RootActorMesh;
pub use actor_mesh::SlicedActorMesh;
pub use bootstrap::Bootstrap;
pub use bootstrap::bootstrap;
pub use bootstrap::bootstrap_or_die;
// Re-export build info attributes for easy access
#[cfg(fbcode_build)]
pub use build_info::BUILD_COMMIT;
#[cfg(fbcode_build)]
pub use build_info::BUILD_HOST;
#[cfg(fbcode_build)]
pub use build_info::BUILD_TIMESTAMP;
#[cfg(fbcode_build)]
pub use build_info::BUILD_USER;
pub use comm::CommActor;
pub use dashmap;
pub use hyperactor_mesh_macros::sel;
Expand Down
8 changes: 8 additions & 0 deletions python/monarch/gradient/_gradient_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,12 +420,20 @@ struct GradientGenerator {
DEBUG_PRINT(
"// add: " << node->node->name()
<< ", input_nr=" << static_cast<int>(input_nr) << "\n");
#if !defined(FBCODE_BUILD)
realInputBuffer(node).add(
input_nr,
check_and_reduce(node->node, input_nr, std::move(t)),
std::nullopt,
std::nullopt);
#else
realInputBuffer(node).add(
input_nr,
check_and_reduce(node->node, input_nr, std::move(t)),
std::nullopt,
std::nullopt,
node->node);
#endif
}

InputBuffer& realInputBuffer(NodeState* state) {
Expand Down