-
-
Notifications
You must be signed in to change notification settings - Fork 55.7k
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
Failed to build against cudnn 8.0.2 #18030
Comments
Here we are.... A lot of people have compalined gcc 9.3. Therefore, I tried clang10, which successfully built opencv4.4.0-dev, after some trivial modification (Refer to #17952 ), and the file modified is gkernel.hpp |
I have reproduced this problem. It's happening in gcc 9 only. (compiles without errors in gcc 8 and below). The following patch fixes the problem. - launch_decode_boxes_kernel<T, current & 8, current & 4, current & 2, current & 1>(std::forward<Args>(args)...);
+ launch_decode_boxes_kernel<T,
static_cast<bool>(current & 8),
static_cast<bool>(current & 4),
static_cast<bool>(current & 2),
static_cast<bool>(current & 1)
>(std::forward<Args>(args)...); |
clang10 is throwing the same error. MCVE: https://godbolt.org/ MSVC and gcc 8 and below have no problem but all clang versions have a problem. clang is much more pedantic than gcc. |
Hi, your solution must be correct. |
I think this issue should stay open. It's a bug. gcc 9 and clang are correct about the error. |
System information (version)
Detailed description
The text was updated successfully, but these errors were encountered: