-
Notifications
You must be signed in to change notification settings - Fork 297
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
Use clang instead of gcc and compile with parallel threads when generating FMUs #11808
Comments
Preferably use the same settings that we have for regular simulations in OMEdit |
For general changes that should be applied to all compilations with CMake add options to OMCompiler/SimulationRuntime/fmi/export/buildproject/CMakeLists.txt.in. If you want to add something that should depend on some omc setting easiest way is to add it in CevalScriptBackend.mo, like it was done for Change compiler: |
Adding @deepak19015 to the loop |
Adding @Michelecroce to the loop |
- Use the last identifer in the model path for the FMU build OpenModelica#11554 - Build FMUs in parallel with the specified number of processors OpenModelica#11808 - Build FMUs with the specified CC and CXX OpenModelica#11808
- Use the last identifier in the model path for the FMU build OpenModelica#11554 - Build FMUs in parallel with the specified number of processors OpenModelica#11808 - Build FMUs with the specified CC and CXX OpenModelica#11808
- Use the last identifier in the model path for the FMU build OpenModelica#11554 - Build FMUs in parallel with the specified number of processors OpenModelica#11808 - Build FMUs with the specified CC and CXX OpenModelica#11808
- Use the last identifier in the model path for the FMU build OpenModelica#11554 - Build FMUs in parallel with the specified number of processors OpenModelica#11808 - Build FMUs with the specified CC and CXX OpenModelica#11808
- Use the last identifier in the model path for the FMU build OpenModelica#11554 - Build FMUs in parallel with the specified number of processors OpenModelica#11808 - Build FMUs with the specified CC and CXX OpenModelica#11808
- Use the last identifier in the model path for the FMU build OpenModelica#11554 - Build FMUs in parallel with the specified number of processors OpenModelica#11808 - Build FMUs with the specified CC and CXX OpenModelica#11808
- Use the last identifier in the model path for the FMU build OpenModelica#11554 - Build FMUs in parallel with the specified number of processors OpenModelica#11808 - Build FMUs with the specified CC and CXX OpenModelica#11808
- Use the last identifier in the model path for the FMU build OpenModelica#11554 - Build FMUs in parallel with the specified number of processors OpenModelica#11808 - Build FMUs with the specified CC and CXX OpenModelica#11808
I guess this is now fixed via #11904. Reopen if there are any issues. |
Thanks @adrpo, I'll test this ASAP. If it works fine, I would port it to maintenance/v1.22, so I'm reopen it as a reminder |
I just generated an FMU of Buildings.Examples.ChillerPlant.DataCenterContinuousTimeControl using the latest nightly build on my Windows PC, it took about one minute (which is reasonable) and I checked with the Process Monitor that the compilation process was indeed using clang in parallel. Success! @adrpo please cherry-pick this to maintenance/v1.22 and close the ticket. |
* Various FMU fixes - Use the last identifier in the model path for the FMU build OpenModelica#11554 - Build FMUs in parallel with the specified number of processors OpenModelica#11808 - Build FMUs with the specified CC and CXX OpenModelica#11808 * Variable name
Merged into maintenance/v1.22 in #11923 |
As discussed in #11759, when we generate FMUs under Windows (not sure about Linux) we still use gcc and compile the files one at a time, which makes the whole thing horribly slow.
We should use clang and parallel processes instead, as we do for regular simulations.
The text was updated successfully, but these errors were encountered: