Skip to content

Conversation

ajay-mk
Copy link
Member

@ajay-mk ajay-mk commented Aug 19, 2025

Implements device support TA::Tensor

This PR implements device support for TA::Tensor. A new device tile type TA::UMTensor is introduced, and the existing device tile type based on btas::Tensor will be removed.

Changelist

  • Introduce TA::UMTensor, aka TA::Tensor with UM allocators
  • Implement kernels for UMTensor operations
  • Add UMTensor based tests
    • Basic tests
    • Expressions
    • Einsum
    • Librett
  • Add examples using UMTensor
  • Utility functions
  • Remove all btas::Tensor based device code

Notes

[will be added later]

ajay-mk added 30 commits July 21, 2025 10:19
UMTensor will be TA::Tensor type with a UM allocator

To avoid confusion, renames some existing uses of UMTensor
Implemented everything except serialization support (needs testing)
Right now, its just a copy of the btas type test case
This forces to use the ctor with nbatches. Only nbatch == 1 is supported anyway.
Don't include tensor.h in um_tensor.h
Follows the same logic in device/btas.h
…rsion of to_device, since pre-fetching is not a mutating operation.
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.

1 participant