Skip to content

Commit

Permalink
adding fw configs to individual jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
hrushikesh-s committed Apr 30, 2024
1 parent c18fe93 commit 60e9a7b
Show file tree
Hide file tree
Showing 6 changed files with 647 additions and 333 deletions.
1 change: 1 addition & 0 deletions src/atomate2/common/flows/elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def make(
if self.prev_calc_dir_argname is not None:
bulk_kwargs[self.prev_calc_dir_argname] = prev_dir
bulk = self.bulk_relax_maker.make(structure, **bulk_kwargs)
bulk.update_config({"manager_config": {"_fworker": "gpu_fworker"}}) #TODO remove this line
jobs.append(bulk)
structure = bulk.output.structure
prev_dir = bulk.output.dir_name
Expand Down
492 changes: 274 additions & 218 deletions src/atomate2/common/flows/hiphive.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/atomate2/common/jobs/elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def run_elastic_deformations(
elastic_job_kwargs[prev_dir_argname] = prev_dir
# create the job
relax_job = elastic_relax_maker.make(deformed_structure, **elastic_job_kwargs)
relax_job.update_config({"manager_config": {"_fworker": "gpu_reg_fworker"}}) #TODO remove this line
relax_job.append_name(f" {idx + 1}/{len(deformations)}")
relaxations.append(relax_job)

Expand Down
Loading

0 comments on commit 60e9a7b

Please sign in to comment.