mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-25 02:49:17 +08:00
15 lines
433 B
Plaintext
15 lines
433 B
Plaintext
Monte Carlo Estimate Pi (with inline QRNG)
|
|
==========================================
|
|
|
|
Estimating Pi on GPU (NVIDIA H100 PCIe)
|
|
|
|
Precision: single
|
|
Number of sims: 100000
|
|
Tolerance: 1.000000e-02
|
|
GPU result: 3.141840e+00
|
|
Expected: 3.141593e+00
|
|
Absolute error: 2.472401e-04
|
|
Relative error: 7.869895e-05
|
|
|
|
MonteCarloEstimatePiInlineQ, Performance = 677644.44 sims/s, Time = 147.57(ms), NumDevsUsed = 1, Blocksize = 128
|