Cuda error : No kernel profiled

Hello, I started learning parallel programing and installed cuda12.3 with wsl2. When i tried to run “hello world” program i have some error :
no kernels profiled
and i see No GPU activities in profiling with nvprof

how can i fix this, thanh you!

Hello, and welcome to the world of CUDA!

Looking at your screen shot, the profiler ran, and gave you information from the tracing of CUDA kernels, what it is telling you with “no kernels were profiled” is that there was no request for deeper analysis of any particular kernel.

The profiler you used here is nvprof, which is the old NVIDIA profiler. You should try to use Nsight Systems (system wide trace analysis including CUDA trace) and Nsight Compute (deep dive into individual kernels) instead.

If you look at the other resources at User Guide — nsight-systems 2023.4.1 documentation (direct link to other resources) you will find tutorials and blogposts about using the tool.