-
Notifications
You must be signed in to change notification settings - Fork 167
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
Failing to build with CUDA 12 - error: more than one instance of overloaded function "max" matches the argument list #227
Comments
I cannot reproduce this issue with CUDA 12.5 on Ubuntu 22.04 (GCC 11.4.0) or 24.04 (GCC 13.2.0). You're not using the latest CUDA version. Did you try to update to 12.5? Also, please note that not even the latest CUDA supports your GCC version (14.1.1). The latest officially supported GCC version is 13.2. I would suggest to try to use a supported combination of CUDA and GCC. |
I tried GCC 12,13 and 14 - same error on all of them. |
I can't reproduce the issue with the same CUDA 12.3.107 version either, using a clean Docker image. The error message doesn't make much sense to me anyway. My best guess is that there might be an issue with your CUDA installation. |
Tried re-installing CUDA, didn't help. My naive guess is that the compiler doesn't know which of these 2 include files to use for the max() function definition:
Is the issue that the build should be using one of these files, but something pulls in both?
This is the only patch Gentoo applies: |
Gentoo may not apply any relevant patches but it does apply custom build options. Could you please try to build OIDN from the unmodified original source without using any CMake config/toolchain files? |
oidn-2.2.* and oidn-2.3.0 fail to build with CUDA 12:
The text was updated successfully, but these errors were encountered: