-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
MSVC 14.29.30037 with CUDA 11.2 occurs error expected a "("
#3485
Comments
Hello @yhmtsai , have you tried to upgrade VS to latest version (16.10) on your local machine? Does this issue reproduce for you locally? |
Hi, @maxim-lobanov |
We have runtime crashes in our app compiled from github actions, problems seem to be caused by new runtime version. 14.29.30037 is problematic. |
Thank you for confirmation. Looks like the issue is caused by Visual Studio 2019 update from 16.9.31229.75 to 16.10.31321.278. |
Hey @yhmtsai! |
Sure, I have reported it in https://developercommunity.visualstudio.com/t/MSVC-C142930037-with-CUDA-112-occur/1437930 (out-of-topic question) |
I hit it too. |
To the maintainers of this repo: You can't always update VS to the latest. Otherwise you will often get such issues. CUDA's nvcc highly depends on VC++ compiler. When Visual Studio does a release sometimes it not only contains bug fixes, it could also have new features and breaking changes. So, you need to follow VS team's Servicing Baseline releases lifecycle, create an image for each baseline release. So you will have
Otherwise such things will continue to happen and the user experience sucks. |
@yhmtsai as a quick fix to your issue, please change your C++ standard to something else other than 14. For example: microsoft/onnxruntime#7883 |
@snnn thanks for your advice. I also try c++17 and it indeed works on my local system. |
another workaround is to use Because it is not the default toolset, need to be careful to handle the external cmake project to avoid different toolset usage. Note. msvc-dev-cmd can use |
Hey, @yhmtsai ! |
Description
After Github Action updates MSVC, the compilation with CUDA 11.2 (11.2.2.46133) occurs error
Area for Triage:
C/C++
Packages
Question, Bug, or Feature?:
Question
Virtual environments affected
Image version
20210525.0
Expected behavior
It should still be able compile the code with CUDA after updating
Actual behavior
It gives several error
expected a "("
in several place.the more detail error can be seen https://github.com/yhmtsai/msvc_cuda_error/runs/2711687900?check_suite_focus=true
Repro steps
I put the hello world example in https://github.com/yhmtsai/msvc_cuda_error
it does not include any actual cuda code.
Compiling it with cuda will gives the error
Note
the previous one works with github action ver 20210516.0 (MSVC 19.28.29915), which can be seen in https://github.com/ginkgo-project/ginkgo/runs/2698442047.
After updating, https://github.com/ginkgo-project/ginkgo/runs/2710943630, which does not change cuda related code, gives the same error as the above
The text was updated successfully, but these errors were encountered: