Skip to content

Feature request: atomate2 worker config example #359

@Youjin1985

Description

@Youjin1985

Hi!
Could you please provide an example of config how to make the following code working?

In [1]: from atomate2.vasp.flows.core import RelaxMaker
   ...: from atomate2.vasp.powerups import add_metadata_to_flow
   ...: from jobflow_remote import submit_flow
   ...: from pymatgen.core import Structure
   ...:
   ...: structure = Structure.from_file('RbB4O6F.cif')
   ...: relax_flow = RelaxMaker().make(structure)
   ...: relax_flow = add_metadata_to_flow(
   ...:     flow=relax_flow,
   ...:     additional_fields={"camd_id": "camd-0"},
   ...: )
   ...:
   ...: submit_flow(
   ...:     relax_flow, worker="example_worker"
   ...: )

First, I am not sure where I should put atomate2 config.
I use (user/runner) + (worker) setup.
On both user/runner and worker I have export ATOMATE2_CONFIG_FILE pointing to atomate2 yaml config file which contains
VASP_CMD: srun /public/software/apps/vasp/intelmpi/5.4.4/bin/vasp_std

It does not work, automatically produced submit.sh looks like

#!/bin/bash

#SBATCH --job-name=relax
#SBATCH --output=/public/home/XXX/.jobflow_workdir/19/fc/3b/19fc3b0f-0958-4220-80df-470728f52250_1/queue.out
#SBATCH --error=/public/home/XXX/.jobflow_workdir/19/fc/3b/19fc3b0f-0958-4220-80df-470728f52250_1/queue.err
cd /public/home/XXX/.jobflow_workdir/19/fc/3b/19fc3b0f-0958-4220-80df-470728f52250_1
source /public/XXX/xtalgo/.bashrc
 conda deactivate
conda activate jobflow
module purge
source /public/software/profile.d/compiler_intel-2021.3.0.sh
source /public/software/profile.d/mpi_intelmpi-2021.3.0.sh
export MKL_DEBUG_CPU_TYPE=5
export I_MPI_PMI_LIBRARY=/opt/sothisai/slurm/lib/libpmi.so
export PATH=/public/software/apps/vasp/intelmpi/5.4.4/hpcx-2.4.1-intel2017:${{PATH}}
jf -fe execution run /public/home/XXX/.jobflow_workdir/19/fc/3b/19fc3b0f-0958-4220-80df-470728f52250_1
``` - vasp command is not inserted.
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions