-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5458990
commit de93926
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import time | ||
|
||
start = time.perf_counter() | ||
import numpy as np | ||
import scipy.sparse as sparse | ||
import scipy.sparse.linalg as sla | ||
|
||
from test_data import discrete_laplacian | ||
stop = time.perf_counter() | ||
print(stop - start) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import os | ||
import sys | ||
import time | ||
|
||
start = time.perf_counter() | ||
from parla.multiload import multiload, multiload_contexts | ||
|
||
nworkers = int(sys.argv[1]) | ||
|
||
for i in range(nworkers): | ||
with multiload_contexts[i] as VEC: | ||
#print("start setup for VEC {}".format(i), file = sys.stderr) | ||
import numpy as np | ||
import scipy.sparse as sparse | ||
import scipy.sparse.linalg as sla | ||
stop = time.perf_counter() | ||
print(stop - start) |