Skip to content

extend 64bit indexing for other multi tensor ops#2014

Open
POI-WX wants to merge 1 commit into
NVIDIA:masterfrom
POI-WX:extend_64bit_indexing_for_other_multi_tensor_ops
Open

extend 64bit indexing for other multi tensor ops#2014
POI-WX wants to merge 1 commit into
NVIDIA:masterfrom
POI-WX:extend_64bit_indexing_for_other_multi_tensor_ops

Conversation

@POI-WX

@POI-WX POI-WX commented Jun 9, 2026

Copy link
Copy Markdown

During llm training, we encountered a case where the number of tensor elements exceeded INT_MAX, leading to illegal memory access. The multi_tensor_l2norm and multi_tensor_scale interfaces do not support int64_t indexing, while the multi_tensor_adam interface has supported int64_t indexing in previous #1765 and #1825 .
To avoid similar issues in the future, we extend the int64_t indexing to all other remaining multi tensor ops and add corresponding tests.

test.log

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