Skip to content

feature: log TA tensor host memory allocations#512

Merged
bimalgaudel merged 1 commit intomasterfrom
gaudel/feature/ta_host_memory_log
Apr 14, 2026
Merged

feature: log TA tensor host memory allocations#512
bimalgaudel merged 1 commit intomasterfrom
gaudel/feature/ta_host_memory_log

Conversation

@evaleev
Copy link
Copy Markdown
Member

@evaleev evaleev commented Apr 13, 2026

This pull request adds improved memory usage logging for tensor operations in the TiledArray backend. A new helper function is introduced to log host memory usage after key tensor computations, and this logging is conditionally enabled when tracing is active. The changes affect both ResultTensorTA and ResultTensorOfTensorTA classes to provide better diagnostics and monitoring of memory consumption during tensor operations.

Memory usage logging improvements:

  • Added a new helper function log_ta_tensor_host_memory_use() that logs host memory usage using the default TA world, enabled only when SEQUANT_EVAL_TRACE is defined.
  • Inserted calls to log_ta_tensor_host_memory_use() after major tensor operations (addition, multiplication, einsum, scaling, assignment, and phase multiplication) in both ResultTensorTA and ResultTensorOfTensorTA classes to track memory usage at critical points.

@bimalgaudel bimalgaudel reopened this Apr 14, 2026
@bimalgaudel bimalgaudel merged commit 1b92351 into master Apr 14, 2026
24 checks passed
@bimalgaudel bimalgaudel deleted the gaudel/feature/ta_host_memory_log branch April 14, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants