Skip to content

Commit

Permalink
print additional info when starting ipi client
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenhaute committed Jul 5, 2024
1 parent 290e0b4 commit 0a1511e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions psiflow/tools/client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import argparse
from pathlib import Path

Expand All @@ -9,6 +10,9 @@


if __name__ == "__main__":
print('OS environment values:')
for key, value in os.environ.items():
print(key, value)
parser = argparse.ArgumentParser()
parser.add_argument(
"--path_hamiltonian",
Expand Down Expand Up @@ -56,6 +60,10 @@
dtype=args.dtype,
max_force=args.max_force,
)
import torch
import psutil
print('torch num threads: ', torch.get_num_threads())
print('cpu count: ', psutil.cpu_count(logical=False))

try:
run_driver(
Expand Down

0 comments on commit 0a1511e

Please sign in to comment.