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

[BUG]: Return Catch2 warning suppression #1471

Closed
1 task done
gevtushenko opened this issue Mar 1, 2024 · 1 comment
Closed
1 task done

[BUG]: Return Catch2 warning suppression #1471

gevtushenko opened this issue Mar 1, 2024 · 1 comment
Labels
bug Something isn't working right.

Comments

@gevtushenko
Copy link
Collaborator

Is this a duplicate?

Type of Bug

Compile-time Error

Component

CUB

Describe the bug

We used to suppress a warning coming from Catch2:

// cudafe considers some catch2 variables as unused. We have to suppress
// these warnings until NVBug 3423950 is addressed.
#if (CUB_HOST_COMPILER == CUB_HOST_COMPILER_MSVC) || \
(CUB_HOST_COMPILER == CUB_HOST_COMPILER_CLANG) || \
defined(__ICC) || defined(_NVHPC_CUDA)
# if defined(__NVCC_DIAG_PRAGMA_SUPPORT__)
# pragma nv_diag_suppress 177
# else
# pragma diag_suppress 177
# endif
#endif

The issue causing this warning was addressed, so we removed this suppression. There's a plan to introduce a CI config for 11.8, which will return the need for this suppression.

Along with the suppression came a policy that catch2_test_helper.h has to be included after all headers. I believe this policy should evolve to the following: 1) suppress the warning only for pre-12 CTKs, 2) do not request any particular order of CUB headers.

The reason to include catch2_test_helper.h after CUB headers was to reveal unused variables in CUB headers. Today, we can depend on CTK 12 CI to reveal unused variables.

How to Reproduce

Build with CTK 11.8

Expected behavior

Successful build

Reproduction link

No response

Operating System

No response

nvidia-smi output

No response

NVCC version

No response

@gevtushenko gevtushenko added the bug Something isn't working right. label Mar 1, 2024
@github-project-automation github-project-automation bot moved this to Todo in CCCL Mar 1, 2024
@miscco
Copy link
Collaborator

miscco commented Mar 3, 2024

Done in #1468

@miscco miscco closed this as completed Mar 3, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in CCCL Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right.
Projects
Archived in project
Development

No branches or pull requests

2 participants