LLNL / ygm

Other
31 stars 22 forks source link

Feature/bag shuffle #130

Closed LFletch1 closed 1 year ago

LFletch1 commented 1 year ago

Added shuffle features to bag container. Local shuffle will shuffle the local bag of each rank. Global shuffle will disburse all of the items in the local bag to random ranks.

steiltre commented 1 year ago

PR #140 introduces the current YGM distributed random engine ygm::default_random_engine. Please incorporate this into the ygm::container::bag::shuffle() operations.

LFletch1 commented 1 year ago

I am now using the the ygm::default_random_engine for the bag local and global shuffles. I did not add templates for an RNG thus it is using std::mt19937. I can add a template for an RNG if wanted.

steiltre commented 1 year ago

I didn't realize the requested changes had been taken care of. Sorry about the delay in getting this merged in. Doing so now.