Windows command line NVCC compilation error ‘cudafe++’ died with status 0xC0000005 (ACCESS_VIOLATION)
on my new computer,I am encountering some issues while programming with CUDA. In Visual Studio 2022, I am able to compile .cu files without any problems; however, when attempting to compile the same .cu files using nvcc in the cmd command line interface, I am encountering the following error messages.
Error message:
PS D:\Code\Cuda> nvcc -o kerner_abc kernel_abc.cu
kernel_abc.cu nvcc error : ‘cudafe++’ died with status 0xC0000005 (ACCESS_VIOLATION)
A bug in the cudafe++ component causing this is a possibility but is an unlikely scenario. In my experience the most common scenario leading to these errors is (1) a corrupted installation of CUDA, or (2) an incorrect configuration when multiple CUDA versions are installed on the same machine.
This happens in particular when CUDA header files from one CUDA version are mixed with compiler components from a different CUDA versions through inconsistent environment variable settings. This may affect compiler use inside the IDE differently from command line use.
If you are quite certain that neither of those scenarios apply, I would suggest filing a bug report with NVIDIA.