Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please update into v12.5 to make these samples compiled by VS2022 #280

Open
liuoob opened this issue Jun 30, 2024 · 1 comment
Open

Please update into v12.5 to make these samples compiled by VS2022 #280

liuoob opened this issue Jun 30, 2024 · 1 comment

Comments

@liuoob
Copy link

liuoob commented Jun 30, 2024

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.

@nbowling
Copy link

nbowling commented Aug 3, 2024

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 and 124 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants