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]: CUB / GCC 13 #1174

Closed
1 task done
gevtushenko opened this issue Dec 4, 2023 · 0 comments · Fixed by #1175
Closed
1 task done

[BUG]: CUB / GCC 13 #1174

gevtushenko opened this issue Dec 4, 2023 · 0 comments · Fixed by #1175
Assignees
Labels
bug Something isn't working right. nvbug Has an associated internal NVIDIA NVBug.

Comments

@gevtushenko
Copy link
Collaborator

gevtushenko commented Dec 4, 2023

Is this a duplicate?

Type of Bug

Compile-time Error

Component

CUB

Describe the bug

CUB inconsistently invokes _CubLog without surrounding #ifdef CUB_DETAIL_DEBUG_ENABLE_LOG in CachingDeviceAllocator. This leads to issues with printf. GCC 13 seems to have removed stdio from some of its headers, so this issue was unmasked. nvbug 4402427

How to Reproduce

#include <cub/util_allocator.cuh>

int main() {}

When compiled with GCC 13:

nvcc -ccbin=g++-13.2 main.cu
cccl/cub/cub/util_allocator.cuh(386): error: identifier "printf" is undefined
if (debug) do { { printf("Changing max_cached_bytes (%lld -> %lld)\n", (long long) this->max_cached_bytes, (long long) max_cached_bytes_); }; } while (false);

Expected behavior

Successful compilation

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 Dec 4, 2023
@github-project-automation github-project-automation bot moved this to Todo in CCCL Dec 4, 2023
@gevtushenko gevtushenko added the nvbug Has an associated internal NVIDIA NVBug. label Dec 4, 2023
@gevtushenko gevtushenko self-assigned this Dec 4, 2023
@gevtushenko gevtushenko moved this from Todo to In Progress in CCCL Dec 4, 2023
@gevtushenko gevtushenko mentioned this issue Dec 4, 2023
2 tasks
@cccl-authenticator-app cccl-authenticator-app bot moved this from In Progress to In Review in CCCL Dec 4, 2023
@github-project-automation github-project-automation bot moved this from In Review to Done in CCCL Dec 5, 2023
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. nvbug Has an associated internal NVIDIA NVBug.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant