Skip to content
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

Added RISC0_CUDA_OPT and set ptxas opt level to -O1 #492

Merged
merged 1 commit into from
Mar 31, 2023

Conversation

mothran
Copy link
Contributor

@mothran mothran commented Mar 31, 2023

Added -O1 because it improves the cuda build times from 2-5 hours -> ~10-20 minutes. The performance cost is only ~ 5-10% slower which should be fine for all our CI, dev, and test but provided the env-var to overwrite that default for production builds.

Added -O1 because it imporve the cuda build times from 2-5 hours ->
~10-20 minutes/ The performance cost is only ~5-10% slower which
should be fine for all our CI, dev, and test but provided the env-var to
overwrite that default for production builds.
@mothran mothran requested review from flaub and jbruestle March 31, 2023 22:07
@github-actions
Copy link

Benchmark for Linux-cuda 2d197e3

Click to hide benchmark
Test Base PR %
fib/100/proof 645.3±8.93ms 641.1±6.47ms -0.65%
fib/100/run 301.8±8.05ms 296.8±5.02ms -1.66%
fib/200/proof 648.0±1.98ms 644.4±6.96ms -0.56%
fib/200/run 305.8±5.69ms 304.4±4.24ms -0.46%

Benchmark for Linux-default 2d197e3

Click to hide benchmark
Test Base PR %
fib/100/proof 2.3±0.02s 2.3±0.02s 0.00%
fib/100/run 334.7±1.73ms 324.9±1.09ms -2.93%
fib/200/proof 2.3±0.02s 2.3±0.01s 0.00%
fib/200/run 341.2±4.43ms 333.2±6.67ms -2.34%

Benchmark for macOS-default 2d197e3

Click to hide benchmark
Test Base PR %
fib/100/proof 1605.5±29.86ms 1598.5±12.30ms -0.44%
fib/100/run 115.4±0.53ms 114.3±0.54ms -0.95%
fib/200/proof 1609.1±22.59ms 1608.9±22.82ms -0.01%
fib/200/run 117.2±0.85ms 116.3±0.97ms -0.77%

Benchmark for macOS-metal 2d197e3

Click to hide benchmark
Test Base PR %
fib/100/proof 466.2±4.88ms 465.6±4.34ms -0.13%
fib/100/run 114.3±0.51ms 113.1±0.60ms -1.05%
fib/200/proof 467.7±4.57ms 467.1±5.03ms -0.13%
fib/200/run 116.6±0.41ms 114.5±0.56ms -1.80%

@mothran mothran merged commit 034fc69 into main Mar 31, 2023
10 checks passed
@mothran mothran deleted the parker/cuda-opt-level branch March 31, 2023 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants