Skip to content

Commit 59b89a8

Browse files
committed
tweaks
1 parent 3c73caa commit 59b89a8

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

psiflow/execution.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ def __init__(
287287
# TODO: how to handle env variables?
288288
# disable thread affinity and busy-idling until we can isolate task resources
289289
default_env_vars = {
290+
"PYTHONUNBUFFERED": "TRUE",
290291
"OMP_PROC_BIND": "FALSE",
291292
"OMP_WAIT_POLICY": "PASSIVE",
292293
"OMP_DISPLAY_ENV": "VERBOSE", # verbose OMP log

psiflow/reference/orca_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def __init__(self, input_template: str, **kwargs):
147147

148148
self.input_kwargs = DEFAULT_KWARGS.copy() # TODO: user control?
149149
definition = psiflow.context().definitions[self.executor]
150-
wq_resources = definition.wq_resources()
150+
wq_resources = definition.wq_resources(self.n_cores)
151151
cores, memory = wq_resources["cores"], wq_resources["memory"]
152152
self.input_kwargs |= {"cores": cores, "memory": memory // cores} # in MB
153153

psiflow/reference/reference.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ class Reference:
112112
bash_template: str
113113
_execute_label: str
114114
executor: str
115+
n_cores: Optional[int]
115116

116117
def __init__(
117118
self, outputs: Sequence[str] = ("energy", "forces"), n_cores: int | None = None

0 commit comments

Comments
 (0)