Skip to content

Conversation

@AngelFP
Copy link
Member

@AngelFP AngelFP commented Apr 19, 2024

This PR uses the new "gen_on_manager" option from libEnsemble, allowing the generator to run in the same process as the manager. This avoids passing the generator to the worker as a copy, so that the generator that gen_f uses is the same instance that was created by the user. This simplifies the code (no need to update the gen in a dirty way after the exploration run) and avoids potentially unexpected behavior that could result from operating on copies of the generator.

Additionally, a new test has been added to check that GPU resource allocation works properly.

@AngelFP AngelFP changed the title [WIP] Run generator on manager Run generator on manager Apr 19, 2024
@AngelFP AngelFP requested review from jlnav and shuds13 April 19, 2024 12:38
@AngelFP AngelFP added the enhancement New feature or request label Apr 19, 2024
Copy link
Member

@shuds13 shuds13 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.

@AngelFP AngelFP merged commit 8c940a9 into main Apr 23, 2024
@AngelFP AngelFP deleted the feature/gen_on_manager branch April 23, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants