Set parallel run in python loading psi4

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("""
H 1 0.96
H 1 0.96 2 104.5

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.