The GPU of this comouter is NVIDIA GeForceGT 720 whose driver is no longer provided by NVIDIA.
I was using CUDA 11.6, and GitHub Samples were working until around July 2022.
This problem stated when I installed CUDA11.8.
Although I reinstalled CUDA 11.6, this problem still occurs.
Is this problem caused by my old graphics card or the GPU driver provided by Windows 10 or CUDA Toolkit or GitHub samples?
Another computer SkyTech Gaming whose GPU is Nvidia GeForce GTX 1600 super 8GB does not have this problem.
The driver for this GPU can be downloaded from NVIDIA.