-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add benchmarks for CPU/GPU #114
Comments
CPU comparisons are available in this private repo: https://github.com/agencyenterprise/ndk-research/blob/main/experiments/184354911-resources-benchmark-for-scenarios/184354911-resource_utilization_benchmark.ipynb That data was used to estimate time/memory requirements for NDK users. Might look into the GPU comparisons; would run into memory limits though. |
As a preliminary CPU/GPU comparison, I ran Stride's computations appear to take 3 major steps:
For a given scenario, the times seemed consistent (
From the table, we can see that:
Raw logs:
|
Note: I tried running the scenarios with different |
Describe the new feature or enhancement
It is possible to run NDK on GPU but its not clear how speed up we get (if any). GPU instances are higher cost so it would be nice to know if the extra cost is worthwhile.
Describe your proposed implementation
Add a
benchmark
directory, possibly intests/benchmark
with a script to time the execution of the scenarios under different parameters. The script should be platform/environment agnostic. We could then compile the benchmark statistics against a few different platforms (memory, gpu, cpus) to give users a sense of the run time. This would also improve the time estimate printed in the simulation.Additional comments
In very simple testing I found no speed up using GPU for the default settings of
scenario-1-2d-v0
, both ran in about 10s. There may be much more speed up when doing large simulations (3d?) but this is the type of thing that would be good to know ahead of time.The text was updated successfully, but these errors were encountered: