Why doesn’t cuda work on VS 2022? I have it installed and I am trying use it for a Ray Tracing Project. But for some reason VS 2022 community version does not show CUDA as a project tool. I have CUDA 12.5:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Wed_Apr_17_19:36:51_Pacific_Daylight_Time_2024
Cuda compilation tools, release 12.5, V12.5.40
Build cuda_12.5.r12.5/compiler.34177558_0
Hi, @benxiang3215
Sorry for the issue you met. We’ll check internally for a repro ASAP.
Can I know is there any other Visual studio like VS2017/VS2019 on the machine ?
Is this issue specified to 12.5 ? Did you success with other CUDA version ever ?
Also did you install VS firstly or CUDA firstly ?
Great questions. I have NEVER gotten CUDA to work properly despite previously owning a machine with Nvidia RTX 3060 and now 4070. I believe I Installed CUDA first and VS 2022 Community next. I was also worried about that so I uninstalled CUDA and and VS 2022 and reinstalled them both CUDA first then VS, but still nothing worked. I could not find CUDA as a language or as a tool on VS 2022. I linked my CUDA 12.5 using some other form and nothing worked.
Hi, @benxiang3215
Please install VS firstly and then CUDA. As CUDA will find the existed VS to install the extension.
Also we have tried CUDA 12.5 can work properly with VS2022 community version.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.