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

Add CUDA 11.8 and alternative means of setting up cgo on Windows #60

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

dalva24
Copy link
Contributor

@dalva24 dalva24 commented Nov 16, 2022

Hi,

After some initial problem I'm finally able to compile the cudatest/main.go in Windows 10. I need to add -LC:/cuda/v11.8/lib/x64 and -IC:/cuda/v11.8/include to cgoflags.go since the version of CUDA I just downloaded is now v11.8.

Perhaps there's a better way of future-proofing this entry? maybe rewriting the symlink method defined in readme to also include the version numbers like mklink /D C:\cuda "c:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\", then adding -LC:/cuda/lib/x64 to cgoflags.go?

Additionally as I already have an existing Go development environment setup, I had some difficulty compiling using the msys method defined in the readme. What I found is that by installing TDM-GCC, cgo simply works without further configuration. I'd like to add this on the readme if it's acceptable.

Thanks.

Add alternative means of setting up cgo for those that already have Go environment setup (using TDM-GCC)
@sgaluzin
Copy link

I want to say thank you, your pull request helps me to run it on cuda@v12.2

@chewxy chewxy merged commit 60c34ed into gorgonia:master Nov 2, 2023
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

Successfully merging this pull request may close these issues.

3 participants