Skip to content

Commit

Permalink
Improve logging message for uvm caching
Browse files Browse the repository at this point in the history
Summary:
Add cache precision to the logging.

Created from CodeHub with https://fburl.com/edit-in-codehub

Reviewed By: sryap

Differential Revision: D53867027
  • Loading branch information
henrylhtsang authored and facebook-github-bot committed Feb 16, 2024
1 parent 66a8779 commit ffaff98
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,8 @@ def _apply_cache_state(
f"Using on-device cache with admission algorithm "
f"{cache_algorithm}, {cache_sets} sets, "
f"load_factor: {cache_load_factor : .3f}, "
f"{cache_size / 1024.0 / 1024.0 / 1024.0 : .2f}GB"
f"cache_size: {cache_size / 1024.0 / 1024.0 / 1024.0 : .2f}GB, "
f"cache_precision: {dtype}"
)

self.total_cache_hash_size = cache_state.total_cache_hash_size
Expand Down

0 comments on commit ffaff98

Please sign in to comment.