-
Notifications
You must be signed in to change notification settings - Fork 18
Updating for new libE interface #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 tasks
AngelFP
approved these changes
Jul 27, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updates
optimasto use the latestlibEnsemblerelease.Highlights
num_procsandnum_gpusingen_specs["out"]). This is more portable than the previous method and will work both with NVIDIA and AMD GPUs.Exploration(including the logs) is now stored in theexplorationfolder. This is done using the newworkflow_dirfeature of libEnsemble. The simulation folders are located inexploration/evaluations.Note
It currently needs the develop libE branch.
Do not merge until these fixes have been included in a libEnsemble release:
workflow_dirLibensemble/libensemble#1017Before merging:
Changes
num_procsandnum_gpusingen_specs["out"]). This is more portable than the previous method in which we were settingCUDA_VISIBLE_DEVICES.set_env_to_slotswithset_env_to_gpusin the generator function.gen_resourcesis set to0. To make sure no resources are allocated for the generator, we now setlibE_specs['zero_resource_workers'] = [1]Exploration(including the logs) is now stored in theexplorationfolder. This is done using the newworkflow_dirfeature of libEnsemble. The simulation folders are located inexploration/evaluations._reset_libensemblemethod to theExplorationthat makes sure that some module variables in libEnsemble are reset after finishing the run. This is needed in order to launch several runs from the same script.sim_dir_copy_filesare now made absolute before passing them to libEnsemble.n_procrenamed ton_procsin theTemplateEvaluator.n_gpus=0(it used to be1).0.2.0.From the changes above, these will affect the user:
explorationdirectory, with the simulation folders being inexploration/evaluations.n_procrenamed ton_procsin theTemplateEvaluator. (this does not really have an impact, asn_procwas just a placehold with no effect until now)n_gpus=0(it used to be1).