Skip to content
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

Creating .sh for HPC submission of ORCA jobs #162

Open
nholub opened this issue Jun 14, 2023 · 8 comments
Open

Creating .sh for HPC submission of ORCA jobs #162

nholub opened this issue Jun 14, 2023 · 8 comments
Assignees

Comments

@nholub
Copy link

nholub commented Jun 14, 2023

How can I adapt the input prep procedure for ORCA submissions on an HPC using SLURM *.sh submission files? I typically use 'sbatch *.sh' to run ORCA's .inp/.cmp jobs via a scratch folder. Can QPREP create a *.sh file for each *.inp, or should I somehow modify my attached standard *.sh file to run all the *.inp files that were created in series?

tempol_sh.zip

Originally posted by @nholub in #157 (comment)

@jvalegre
Copy link
Owner

Hi,

I normally use a SH script that runs the whole workflow AQME + Gaussian/ORCA + GoodVibes in the same script. I'm attaching an example called AQME_script.txt, but it should be AQME_script.sh (GitHub didn't allow me to upload the SH script directly):

  • The "### Run QM calculation." section includes the function that executes de QM software, Gaussian in this case but it should work the same way for ORCA -> PATH/orca FILE.inp > FILE.out

  • The "### Wrapper for batching and running jobs" section iterates over all the QM input files. In this case, the code iterates over COM files with *.com, but you can change it for *.inp to iterative over ORCA inputs.

Hope this helps!

AQME_script.txt

@jvalegre
Copy link
Owner

jvalegre commented Jul 1, 2023

@nholub please, let me know if the issue is fixed and, if so, close this issue.

@nholub
Copy link
Author

nholub commented Jul 11, 2023 via email

@jvalegre
Copy link
Owner

hi @nholub - I can't find the attached file, try to upload it from the thread of the issue on GitHub

@nholub
Copy link
Author

nholub commented Jul 16, 2023

orca_sh_test.zip

@nholub
Copy link
Author

nholub commented Jul 28, 2023 via email

@jvalegre
Copy link
Owner

hi @nholub - sorry for the delay, we've been finishing the ROBERT program and I couldn't check the issues from AQME.

The problem of your script is that the memory has to be specified as 20GB instead of 20000 in "maxcore=20000". I'll add a patch in the next version (1.5.2) to accept memory values with no GB or MB included.

I checked your script, and the CSEARCH and QPREP commands worked on my computer (you might need to change the ORCA qm_input to include separated lines, maybe @turkiAlturaifi can help here).

@turkiAlturaifi
Copy link
Collaborator

Hi @nholub Hi @jvalegre - for the QPREP qm_input command, the following works for me in order to start a new line:

python -m aqme --qprep --program "orca" --files CSEARCH/SPr2V_ox_rdkit.sdf --qm_input "B3LYP D3BJ def2-TZVPP def2/J opt
%geom
end" --mem "1" --nprocs "1" --suffix "GP"

or

python -m aqme --qprep --program "orca" --files CSEARCH/SPr2V_ox_rdkit.sdf --qm_input "B3LYP D3BJ def2-TZVPP def2/J opt"$'\n'"%geom"$'\n'"end" --mem "1" --nprocs "1" --suffix "GP"

in this option, the line is closed with the quotes then $'\n' is added, then the new quotes for the second line and so on.

tested on mac and linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants