Set parallel run in python loading psi4

Hello,
I am using psi4 in python, from PsiAPI Tutorial: Using Psi4 as a Python Module, and wondering if there is any setting for parallel run (preferably inside the python file).

My input is

import psi4

psi4.set_memory('500 MB')

h2o = psi4.geometry("""
O
H 1 0.96
H 1 0.96 2 104.5
""")

psi4.energy('scf/cc-pvdz')                       

Thank you very much

You’re looking for set_num_threads.

Thank you very much! It works! :grinning:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.