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

Compilation error when using in NVRTC with nvc++ as C++ compiler #1012

Closed
jszuppe opened this issue Mar 30, 2023 · 4 comments
Closed

Compilation error when using in NVRTC with nvc++ as C++ compiler #1012

jszuppe opened this issue Mar 30, 2023 · 4 comments
Assignees

Comments

@jszuppe
Copy link

jszuppe commented Mar 30, 2023

#include <cuda/std/climits>

constexpr double a = __DBL_DENORM_MIN__;
using T = decltype(a);

When I compile the code presented above with NVRTC and nvc++ (23.1) as C++ compiler I'm getting:

test_kernel.cu(4): error: floating constant is out of range
  constexpr double a = __DBL_DENORM_MIN__;

Reproducer and compilation command in the gist: https://gist.github.com/jszuppe/79645a85a442cc0c46556d1aadc5c782

What's funny is that when I use g++/clang or older nvc++ (21.1) as C++ compiler it works fine. Same goes for the mentioned code and nvcc.

@wmaxey
Copy link
Member

wmaxey commented Mar 30, 2023

I'll do some digging, maybe some version of NVRTC that NVC++ is using has an issue. If I can get a reproducer of this on say CTK 12.0/12.1 then it might help pinpoint if this is a compiler issue or our issue.

@jszuppe
Copy link
Author

jszuppe commented Mar 30, 2023

I'll do some digging, maybe some version of NVRTC that NVC++ is using has an issue. If I can get a reproducer of this on say CTK 12.0/12.1 then it might help pinpoint if this is a compiler issue or our issue.

I'll have to double check tomorrow, but I think the same nvrtc was used both with g++ and nvc++. That's why it's odd.

@miscco miscco self-assigned this Mar 30, 2023
@miscco
Copy link
Collaborator

miscco commented Mar 30, 2023

I will try and reduce / reproduce this tomorrow. I have some other nvrtc bugs to file anyway

@jarmak-nv jarmak-nv transferred this issue from NVIDIA/libcudacxx Nov 8, 2023
@github-project-automation github-project-automation bot moved this to Todo in CCCL Nov 8, 2023
@jrhemstad
Copy link
Collaborator

This is now tracked by #1177

@jrhemstad jrhemstad closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in CCCL Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants