-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Identifier "FLT_MAX" is undefined #4914
Comments
My quick and dirty solution was to temporarily add:
at the start of |
inluding <limits.h> might solve it another way -- not sure what has
changed, maybe you have a new release of cuda when they changed strategy of
includes?
y.
…On Thu, May 23, 2024 at 1:57 PM Danijel Koržinek ***@***.***> wrote:
My quick and dirty solution was to temporarily add:
const float FLT_MAX=3.402823466e+38F;
at the start of cudadecoder/cuda-decoder-kernels.cu, but it would nice to
know what caused it. Is this something only on my Ubuntu machine or are
there others facing the same problem?
—
Reply to this email directly, view it on GitHub
<#4914 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUKYX7ZEWMBT6H4BRSUNBLZDXKRVAVCNFSM6AAAAABIFO7M2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRWHEZDOMRVGI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Yeah we probably committed the sin of relying on things that are indirectly included. @danijel3 is there any chance you could commit a fix? It looks like we are supposed to |
|
It would be fine to just replace FLT_MAX in the code with that constant, and put // FLT_MAX |
I confirmed the issue using a blank Ubuntu Docker image. From what I can see, it is related only to CUDA SDK (so the cu files) and not the standard C++ libs. The install uses the latest (as of now) version of the SDK from the NVidia repo on the Ubuntu 22.04:
The PR above is harmless and hopefully sufficient. I've checked and it does resolve the issue. |
Adding |
Not sure if something hasn't changed recently, but seems something isn't letting cudadecoder compile properly:
My version of NVCC:
And g++:
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
The text was updated successfully, but these errors were encountered: