We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Compile-time Error
CUB
GCC 6 emits warnings on the following code (nvbug 4384865):
unsigned char max_word = 0x7EU; return reinterpret_cast<__nv_fp8_e4m3&>(max_word);
This affects only our tests. For users, the code is under system header.
#include <cub/util_type.cuh> int main() { }
When compiled with:
nvcc main.cu -ccbin=g++-6 -D_CCCL_NO_SYSTEM_HEADER -O3 -std=c++14 "--generate-code=arch=compute_89,code=[compute_89,sm_89]" -Xcompiler=-Werror -Xcompiler=-Wall -Xcompiler=-Wextra
Emits:
cccl/cub/cub/util_type.cuh:1187:51: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] return reinterpret_cast<__nv_fp8_e4m3&>(max_word);
Compilation emits no warnings
No response
The text was updated successfully, but these errors were encountered:
gevtushenko
Successfully merging a pull request may close this issue.
Is this a duplicate?
Type of Bug
Compile-time Error
Component
CUB
Describe the bug
GCC 6 emits warnings on the following code (nvbug 4384865):
This affects only our tests. For users, the code is under system header.
How to Reproduce
When compiled with:
nvcc main.cu -ccbin=g++-6 -D_CCCL_NO_SYSTEM_HEADER -O3 -std=c++14 "--generate-code=arch=compute_89,code=[compute_89,sm_89]" -Xcompiler=-Werror -Xcompiler=-Wall -Xcompiler=-Wextra
Emits:
Expected behavior
Compilation emits no warnings
Reproduction link
No response
Operating System
No response
nvidia-smi output
No response
NVCC version
No response
The text was updated successfully, but these errors were encountered: