mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-25 04:19:16 +08:00
15 lines
433 B
Plaintext
15 lines
433 B
Plaintext
|
Monte Carlo Estimate Pi (with inline PRNG)
|
||
|
==========================================
|
||
|
|
||
|
Estimating Pi on GPU (NVIDIA H100 PCIe)
|
||
|
|
||
|
Precision: single
|
||
|
Number of sims: 100000
|
||
|
Tolerance: 1.000000e-02
|
||
|
GPU result: 3.141480e+00
|
||
|
Expected: 3.141593e+00
|
||
|
Absolute error: 1.127720e-04
|
||
|
Relative error: 3.589644e-05
|
||
|
|
||
|
MonteCarloEstimatePiInlineP, Performance = 746954.33 sims/s, Time = 133.88(ms), NumDevsUsed = 1, Blocksize = 128
|