I have a project that uses cuda to perform matrix vector operations this project has been working fine but since I updated visual studio 2022 to 17.9.6 (I Don’t know what version I updated from) my build fails and msvc gives the output the command “(long command)” exited with code 2. I have read other threads and tried changing the verbosity of msvc and nvcc but it gives no errors before this command is run and seems like there is no output. I tried running the command on my own from command prompt but it just gives no output, no exit code, no error, just nothing though there is a small delay as if its doing something when the command is run. I can run nvcc --version and have tried reinstalling cuda.
I have tried to compile the project in the command prompt and in visual studio with no success. I downloaded a sample project and it has the same issue.