Error: only 0 Devices available, 1 requested and BlackScholes cudaErrorDeviceUnavailable

root@LAPTOP-BBJ8K79I:/mnt/c/Users/agrov# docker run --gpus 0 nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark
Run “nbody -benchmark [-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= (number of bodies (>= 1) to run in simulation)
-device= (where d=0,1,2… for the CUDA device to use)
-numdevices= (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.

Error: only 0 Devices available, 1 requested. Exiting.

Keep getting thus error 0pls help

This issue is related to BlackScholes issue . After this the following issue may appear

1 Like