Please update into v12.5 to make these samples compiled by VS2022
I git-cloned these sample code into my computer with CUDA v12.5 installed, then when I tried to compile the sample code it failed. According to output messages from the solution it seems to be the problem of version failure. So plz update these samples to fit v12.5. Thanks.
You can manually edit the vcxproj (VS Project) for the sample you want to compile. Don't try to use the root project file in the cuda-samples directory, use the project in each samples directory. I use VSCode to do this but any editor will do. For me the offending lines are 37 <Import Project="$(CUDAPropsPath)\CUDA 12.x.props" /> and 124 <Import Project="$(CUDAPropsPath)\CUDA 12.x.targets" /> change the x to your version of CUDA. Sadly you will have to do this for every sample you want to compile. Hope this helps.
Thanks for your feedback - this should be resolved, so I will close this issue.