File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ import time
2
+
3
+ start = time .perf_counter ()
4
+ import numpy as np
5
+ import scipy .sparse as sparse
6
+ import scipy .sparse .linalg as sla
7
+
8
+ from test_data import discrete_laplacian
9
+ stop = time .perf_counter ()
10
+ print (stop - start )
11
+
Original file line number Diff line number Diff line change
1
+ import os
2
+ import sys
3
+ import time
4
+
5
+ start = time .perf_counter ()
6
+ from parla .multiload import multiload , multiload_contexts
7
+
8
+ nworkers = int (sys .argv [1 ])
9
+
10
+ for i in range (nworkers ):
11
+ with multiload_contexts [i ] as VEC :
12
+ #print("start setup for VEC {}".format(i), file = sys.stderr)
13
+ import numpy as np
14
+ import scipy .sparse as sparse
15
+ import scipy .sparse .linalg as sla
16
+ stop = time .perf_counter ()
17
+ print (stop - start )
You can’t perform that action at this time.
0 commit comments