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

Visual studio 2022 + Cuda 11.8 #8

Open
pierrextardif opened this issue Jan 22, 2025 · 3 comments
Open

Visual studio 2022 + Cuda 11.8 #8

pierrextardif opened this issue Jan 22, 2025 · 3 comments

Comments

@pierrextardif
Copy link
Contributor

Hi I have Cuda 11.4 and Visual Studio 2022, adn the compilation isn't working.

Patched is detailed here:
adding a command line flag to Cuda C/C++

-allow-unsupported-compiler -D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH

I've documented it on my branch (https://github.com/pierrextardif/CustomOperatorSamples) can I pull?

Best,

P

@mbechard
Copy link
Member

Hey, can I ask why you are using CUDA 11.4? Things that are compiled against CUDA 11 should work fine with CUDA 11.8

@pierrextardif
Copy link
Contributor Author

pierrextardif commented Jan 22, 2025

Hi,

I'm using CUDA 11.8 not 11.4 my mistake ( i have both installed).
They don't it seems due to Visual studio wanting to have a corresponding CUDA version.

Back story:
I installed CUDA a while ago (first 11.4 then 11.8), and used it with visual studio 2017, then 2019, then now 2022.

If a developer comes along with an older version of CUDA trying to compile it, it might not work like it did for me.
The same might happen if someone develops with an old version of visual studio and a newer version of CUDA (not compatible with nvcc).

I believe you have documented it very well for a fresh install, but maybe in the case of an upgrade for CUDA or Visual Studio.

@mbechard
Copy link
Member

mbechard commented Feb 4, 2025

Hey, yes, we're happy to accept a pull request.

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