Skip to content

Commit e5995f4

Browse files
authored
ORCA settings: oversubscribe and set host (#101)
* Oversubscribe ORCA * Ruff formatting for pull request
1 parent 5ab0138 commit e5995f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bluephos/modules/dft_calculators.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import logging
22
import multiprocessing
33
import os
4+
import socket
45
import subprocess
56
from textwrap import dedent
67

@@ -114,7 +115,10 @@ def run_orca_command(input_file, output_file, orca_path):
114115
"""
115116
Run the ORCA command and log outputs.
116117
"""
117-
command = [orca_path, input_file]
118+
this_host = socket.gethostname()
119+
mpi_options = f"--oversubscribe --host {this_host}"
120+
command = [orca_path, input_file, mpi_options]
121+
logging.info(f"Running ORCA command: {command}")
118122
with open(output_file, "w") as output:
119123
result = subprocess.run(command, stdout=output, stderr=subprocess.PIPE, check=True, text=True)
120124
if result.stderr: # Check if stderr is not empty

0 commit comments

Comments
 (0)