You saved me, I am very grateful. This problem has been bothering me for over a month, and I have tried various solutions over the past month, but all have ended in failure. In the end, I found an issue in your post, so my device does not support cl.exe for x86 programs to compile CUDA source files, and must use cl.exe with x64 architecture. Based on this idea, I modified the environment variables, removed their x86 path, and added the path of the x64 program, which solved the problem.