-
Notifications
You must be signed in to change notification settings - Fork 130
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
Build error coming from onnxruntime_extensions dependency #1082
Comments
Hi! We're building for Win-x64 in our CI all the time, for example this. Could you try cleaning all then perform a CPU build first? Just |
@skyline75489 thanks for your help. I can confirm cpu build works fine for Release and ReleaseWithDebInfo, however maybe these are only compatible with cuda 12.2? unfortunately MSVC 14.38.33130 is a hard requirement for me so hopefully that's not the issue. |
It could be the CUDA version. I'm not sure. But good to hear that CPU build works. Unfortunately, we don't have support for 12.6 at this moment. Adding CUDA 12.6 support would require upstream project, that is ORT itself, to supports 12.6. Otherwise, it doesn't make much sense, right? |
I will try tomorrow with 12.2. For what it's worth, main of ORT compiles with 12.6 and cuDNN 9.5. Thanks again for your help @skyline75489, i will update here when i try 12.2. |
Thanks for your feedback! If you find anything wrong with the code, feel free to contact us. |
I wonder if it has anything to do with the cxx standard we use to build cuda: onnxruntime-genai/cmake/cxx_standard.cmake Lines 5 to 7 in d4d3a88
Could you change that to set(CMAKE_CXX_STANDARD 20) and remove the add_compile_definitions(USE_CXX17=1) for cuda builds? Let me know if that fixes it for you. |
@skyline75489 @baijumeswani thanks again for your help. I tried:
for reference, the updated cmake/cxx_standard.cmake is:
and the errors are still:
could this be related to my if helpful, i am pulling a fresh copy of the repo on every build so there shouldn't be any cmake caching issues. is there a way to exclude building these audio components? for my usecase they aren't even needed so maybe i can skip them in the build process. the other day i tried making some changes to one of the CMakeFiles in the extensions to disable audio but i don't think i did it properly because it was still hitting this error. I also don't need opencv, maybe down the road an option to build for chat only would be helpful. anyways, thanks for your help in debugging this issue. much appreciated. |
I'm having a difficult time sorting out an issue related to the audio extensions when compiling onnxruntime-genai from source. my build command is:
Eventually this exits after hitting:
It looks like the error is coming from this line, although I'm not seeing any related issues in onnxruntime-extensions so I assume this is stemming from how i built onnxruntime or perhaps the arguments i passed when building onnxruntime-genai.
Is there anything obvious that I'm missing? Thanks in advance for any suggestions.
The text was updated successfully, but these errors were encountered: