-
Notifications
You must be signed in to change notification settings - Fork 170
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
Many warnings with -Wconversion #779
Labels
Comments
We should add this flag to Thrust and CUB's CI build system for all targets. |
matt-stack
referenced
this issue
in matt-stack/thrust
Oct 1, 2021
Referencing NVIDIA/thrust#1478 and also hand-in-hand with NVIDIA/cub branch bug/github/wconversion-thrust1478 This is to check the style is right and I am following best practices before adding -Wconversions to the gcc build and tackling those warnings. With this branch and the cub branch bug/github/wconversion-thrust1478, the simple reproducer should described in the orignal issue #1478 can build nvcc main.cu -Xcompiler=-Wconversion without warning.
matt-stack
referenced
this issue
in matt-stack/cub
Oct 1, 2021
This is in reference to NVIDIA/thrust#1478, two changes added to add explicit conversion
This was referenced Oct 1, 2021
This should be resolved by #531 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We're seeing a lot of warnings on Linux, host compiler GCC 9.3.0 with
-Wconversion
.For a basic example, compile:
With:
nvcc main.cu -Xcompiler=-Wconversion
.This will result in around 1000 lines of output warnings.
Tested with the Thrust versions in CUDA 11.0, 11.3, and the latest commit on main on this repository (
776bbc4d
).The text was updated successfully, but these errors were encountered: