Skip to content

Many warnings with -Wconversion #779

@nvibd

Description

@nvibd

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

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomers.thrustFor all items related to Thrust.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions