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

Lot of conversion warnings, if compiled with -Wconversion #904

Closed
krzikalla opened this issue Oct 14, 2022 · 2 comments
Closed

Lot of conversion warnings, if compiled with -Wconversion #904

krzikalla opened this issue Oct 14, 2022 · 2 comments
Assignees
Labels
cub For all items related to CUB

Comments

@krzikalla
Copy link

E.g.

util_type.cuh:686:1861: warning: conversion to ‘short unsigned int’ from ‘int’ may alter its value [-Wconversion]
 CUB_DEFINE_VECTOR_TYPE(unsigned short,     ushort)

No surprise, since arithmetic operations use always int at least.
Due to the macro expansion there is a huge amount of such warnings.

@gevtushenko
Copy link
Collaborator

@krzikalla, thank you for reporting this! It's a known issue.
I can verify a lot of warnings are reported when building standalone CUB with -Wconversion.

@jrhemstad jrhemstad added the cub For all items related to CUB label Feb 22, 2023
@jarmak-nv jarmak-nv transferred this issue from NVIDIA/cub Nov 8, 2023
@jrhemstad
Copy link
Collaborator

Closed by #531

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cub For all items related to CUB
Projects
Archived in project
Development

No branches or pull requests

4 participants