Skip to content

fix: fix the use of Charm++ locks and CkLoop#782

Merged
jhenin merged 2 commits intoColvars:masterfrom
HanatoK:fix_charm_smp
Mar 21, 2025
Merged

fix: fix the use of Charm++ locks and CkLoop#782
jhenin merged 2 commits intoColvars:masterfrom
HanatoK:fix_charm_smp

Conversation

@HanatoK
Copy link
Copy Markdown
Member

@HanatoK HanatoK commented Mar 19, 2025

This PR picks the fix of smp_lock() and smp_unlock() implementations in ac82aa9 , and uses smp_num_threads() for the number of chunks CkLoop_Parallelize to avoid potential oversubscription.

@HanatoK HanatoK requested review from giacomofiorin and jhenin March 19, 2025 15:05
@HanatoK HanatoK added the NAMD label Mar 19, 2025
Copy link
Copy Markdown
Member

@giacomofiorin giacomofiorin left a comment

Choose a reason for hiding this comment

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

You know more about the details of the Charm++ locking syntax, but overall this looks great.

@HanatoK
Copy link
Copy Markdown
Member Author

HanatoK commented Mar 19, 2025

There could be merge conflicts between this PR and #780, because I changed the numChunks parameter of the CkLoop_Parallelize calls.

Copy link
Copy Markdown
Member

@jhenin jhenin left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@jhenin
Copy link
Copy Markdown
Member

jhenin commented Mar 21, 2025

Will merge this now, so @HanatoK can rebase #780 and resolve any conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants