cuda-samples icon indicating copy to clipboard operation
cuda-samples copied to clipboard

Incorrect (?) cores/SM using samples such as nbody:

Open AaronFriel opened this issue 5 years ago • 0 comments

$ docker run --rm -it --gpus=all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark
Run "nbody -benchmark [-numbodies=<numBodies>]" to measure performance.
        -fullscreen       (run n-body simulation in fullscreen mode)
        -fp64             (use double precision floating point values for simulation)
        -hostmem          (stores simulation data in host memory)
        -benchmark        (run benchmark to measure performance)
        -numbodies=<N>    (number of bodies (>= 1) to run in simulation)
        -device=<d>       (where d=0,1,2.... for the CUDA device to use)
        -numdevices=<i>   (where i=(number of CUDA devices > 0) to use for simulation)
        -compare          (compares simulation results running once on the default GPU and once on the CPU)
        -cpu              (run n-body simulation on the CPU)
        -tipsy=<file.bin> (load a tipsy model file for simulation)

NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled.

> Windowed mode
> Simulation data stored in video memory
> Single precision floating point simulation
> 1 Devices used for simulation
MapSMtoCores for SM 8.6 is undefined.  Default to use 64 Cores/SM
GPU Device 0: "GeForce RTX 3090" with compute capability 8.6

See last line. The Ampere architecture should have 128 Cores/SM, no?

Run using WSL2 and GPU-in-Docker via Windows 10 21301, Docker for Windows 3.1.

AaronFriel avatar Jan 30 '21 18:01 AaronFriel