Skip to content

Conversation

@hjchen2
Copy link
Contributor

@hjchen2 hjchen2 commented Aug 19, 2025

No description provided.

hccl::TransportMem::RmaMemDescs remoteRmaMemDescs;
remoteRmaMemDescs.array = remoteRmaMemDescArray.data();
remoteRmaMemDescs.arrayLength = m_num;
remoteRmaMemDescs.arrayLength = VECTOR_MAX_SIZE;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any check that m_num <= VECTOR_MAX_SIZE?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added checks and used the environment variable ASCEND_TRANSPORT_MAX_REG_MEMORY_NUM to flexibly change the expected maximum size

std::vector<hccl::TransportMem::RmaMem> remoteRmaMemArray(m_num);
for (uint32_t i = 0; i < m_num; ++i) {
std::vector<hccl::TransportMem::RmaMem> remoteRmaMemArray(
actualNumOfRemote);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@hjchen2 hjchen2 requested a review from alogfans August 19, 2025 09:03
@alogfans
Copy link
Collaborator

LGTM

@alogfans alogfans merged commit d3f2da1 into kvcache-ai:main Aug 20, 2025
11 checks passed
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