Skip to content

Commit

Permalink
set CUDA_VISIBLE_DEVICES based on workerID
Browse files Browse the repository at this point in the history
  • Loading branch information
jlnav committed Jul 12, 2021
1 parent c19749c commit 7dee9a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libensemble/tests/scaling_tests/ddmd/keras_cvae_ml_genf.py
Expand Up @@ -174,6 +174,7 @@ def run_keras_cvae_ml_genf(H, persis_info, gen_specs, libE_info):
exctr = Executor.executor
persis_info['stage_count'] = -1
os.environ["OMP_NUM_THREADS"] = '4'
os.environ["CUDA_VISIBLE_DEVICES"] = str(libE_info['workerID'])
initial_complete = False
tag = None

Expand Down
1 change: 1 addition & 0 deletions libensemble/tests/scaling_tests/ddmd/openmm_md_simf.py
Expand Up @@ -49,6 +49,7 @@ def run_openmm_sim_f(H, persis_info, sim_specs, libE_info):
"""
calc_status = 0
os.environ["OMP_NUM_THREADS"] = '4'
os.environ["CUDA_VISIBLE_DEVICES"] = str(libE_info['workerID'])

# Specify the Executor object created in the calling script.
exctr = Executor.executor
Expand Down

0 comments on commit 7dee9a1

Please sign in to comment.