Sitelet https://web.archive.org/web/20210821020440/https://github.com/NVIDIA/thrust/issues/1478
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

Many warnings with -Wconversion #1478

Open
nvibd opened this issue Jul 8, 2021 · 1 comment
Open

Many warnings with -Wconversion #1478

nvibd opened this issue Jul 8, 2021 · 1 comment

Comments

@nvibd
Copy link
Contributor

@nvibd nvibd commented Jul 8, 2021 •

We're seeing a lot of warnings on Linux, host compiler GCC 9.3.0 with -Wconversion.

For a basic example, compile:

#include <thrust/device_vector.h>
int main() {
  thrust::device_vector<int> a;
  return 0;
}

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).

@allisonvacanti
Copy link
Collaborator

@allisonvacanti allisonvacanti commented Jul 8, 2021

We should add this flag to Thrust and CUB's CI build system for all targets.

@allisonvacanti allisonvacanti removed this from the 1.14.0 milestone Aug 17, 2021
@allisonvacanti allisonvacanti added this to the 1.15.0 milestone Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants