-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scaling results #133
Comments
@Xarthisius I think you and possibly @cindytsai have looked at this. Would you be able to take this on and look at producing some simple scaling plots, even if they don't demonstrate great performance? |
I found something I did on 03/08/2023: import time
import yt
from yt.config import ytcfg
yt.enable_parallelism()
ds = yt.load("/dpool/kacperk/second_star/DD0182/DD0182")
ds.index
start_time = time.time()
v, c = ds.find_max(("gas", "density"))
if yt.is_root():
print(v, c)
max_time = time.time() - start_time
print("--- (max) %.2f seconds ---" % max_time)
start_time = time.time()
p = yt.ProjectionPlot(ds, "z", ("gas", "density"), width=(1.0, 'unitary'))
if yt.is_root():
prj_time = time.time() - start_time
print("--- (prj) %.2f seconds ---" % prj_time)
nprocs = int(ytcfg.get("yt", "internals", "global_parallel_size"))
with open("results.csv", "a") as fp:
fp.write("%i,%.2f,%.2f\n" % (nprocs, max_time , prj_time))
p.save() Run via: #!/bin/bash
for i in {1..10}; do
for n in 1 2 4 8 16 32 ; do
mpiexec -n $n -bind-to core python canary.py --parallel
done
done on Results: You explained to me why |
Need examples of scaling of operations.
The text was updated successfully, but these errors were encountered: