File: startBatch.py

package info (click to toggle)
yade 2025.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,308 kB
  • sloc: cpp: 93,298; python: 50,409; sh: 577; makefile: 162
file content (13 lines) | stat: -rw-r--r-- 512 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- encoding=utf-8 -*-
import subprocess
import os
import numpy as np
import matplotlib.pyplot as plt

threadsMax = 10
threadsInterval = 1
threadsList = np.linspace(2, threadsMax, num=threadsMax / threadsInterval)  # need at least one master and one worker

for numThreads in threadsList:
	#os.environ["IDENTIFIER"]='strongScalability-'+str(int(numThreads))+'-threads'
	subprocess.call(['mpiexec', '-n', str(int(numThreads)), 'yadempi-daily', '-x', '-n', 'testMPI_strongScalability.py', str(int(numThreads))])