-
Notifications
You must be signed in to change notification settings - Fork 108
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
error if using Enzyme with gcc/g++ #1883
Conversation
This should be made into a warning as there are legitimate use cases of non clang compilers, for example if part of the code is not differentiated or has custom derivatives defined, or using an existing Bitcode library |
Sure, done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also print the cmake_c_compiler and the thing you're checking in the warning as well?
project languages: C
CMake Warning at /u/drehwald/prog/Enzyme/enzyme/build/EnzymeConfigVersion.cmake:8 (message):
C compiler ID equals GNU
C compiler: /usr/bin/gcc
Using Enzyme without an LLVM based C compiler.
Call Stack (most recent call first):
CMakeLists.txt:5 (find_package) |
Excellent, I think that extra info will help folks. |
It would be nicer to check if we actually have a LLVM based compiler, but I am worried of some vendor specific compilers having awkward names. So only check for GNU, since that's 100% unsupported. This should still cover almost all cases and prevents issues like this:
closes #1871
Tested locally: