first commit

This commit is contained in:
Tiziano Zito 2025-08-13 13:57:19 +02:00
commit 01e7a23ae2
6 changed files with 598 additions and 0 deletions

7
parallel/overcommit.py Normal file
View file

@ -0,0 +1,7 @@
import sys
import numpy as np
N = int(sys.argv[1]) if len(sys.argv) > 1 else 10000
x = np.zeros((N, N), dtype="float64")
y = x @ x

8
parallel/submit.sh Executable file
View file

@ -0,0 +1,8 @@
# the number of python processes to start, P=3 if not set
P=${1:-3}
# the size of the matrix, use the default in overcommit.py if not set
N=$2
for i in $(seq $P); do
echo -n "Starting process ${i}"
python overcommit.py $N & echo $!
done