Skip to content

Commit

Permalink
Use run_only_rank0 to broadcast allocation data
Browse files Browse the repository at this point in the history
  • Loading branch information
st4rl3ss committed Feb 21, 2024
1 parent a844031 commit 8e3b3ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neurodamus/utils/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ def export_allocation_stats(rank_allocation, filename):
f.write(compressed_data)


def import_allocation_stats(filename):
@run_only_rank0
def import_allocation_stats(filename) -> dict:
"""
Import allocation dictionary from serialized pickle file.
"""
Expand Down

0 comments on commit 8e3b3ba

Please sign in to comment.