Skip to content

Conversation

@abenmao
Copy link
Contributor

@abenmao abenmao commented May 24, 2024

No description provided.


#ifdef USE_SHM
if (sizeof(T) * count > pshm->getSHMSize() || !localRanksFlag) {
if (!localRanksFlag || (pshm != nullptr && sizeof(T) * count > pshm->getSHMSize())) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we also need to add a condition "pshm == nullptr" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It’s a good suggestion. Maybe it can be used to check whether shared memory is allocated successfully. I’ll think about it later.

@abenmao abenmao merged commit 970e5de into intel:main May 27, 2024
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