Open tksharpless opened 3 days ago
My Cuda Toolkit version is 12.5. Evidently the problem is that the vcxproj files all import projects named "CUDA 12.4.xxxx", which don't exist on my system. The corresponding CUDA 12.5 ones do. Unfortunately it is not possible to correct this via the VS IDE; it simply refuses to load the projects.
As a quick and dirty workaround I made copies of the 3 files "CUDA 12.5.props", "CUDA 12.5.targets" and "CUDA 12.5.xml" with ".4" in place of ".5". This allowed VS 2022 to load (veerrry slllooowly) and eventually to build the test projects. I strongly suggest you start using cmake to create correct MS projects on the fly. Many benefits would accrue.
Just cloned and tried to load project "Samples_VS2022.sln". Every single project load fails with the same error message. Example: C:\Users\tksha\cuda-samples\Samples\6_Performance\UnifiedMemoryPerf\UnifiedMemoryPerf_vs2022.vcxproj : error : The imported project "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\BuildCustomizations\CUDA 12.4.props" was not found. Confirm that the expression in the Import declaration "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\BuildCustomizations\CUDA 12.4.props" is correct, and that the file exists on disk. C:\Users\tksha\cuda-samples\Samples\6_Performance\UnifiedMemoryPerf\UnifiedMemoryPerf_vs2022.vcxproj The same message appeared in a popup:![image](https://github.com/NVIDIA/cuda-samples/assets/8539366/a78de8b1-583a-4e2d-a31f-9cb62e195ea2)