FunctorFactory: Fix DisableJIT behaviour and better feedback
- Propagate the owner requesting a functor to FunctorFactory and print it in error messages and debug logs. - Write a .log file next to each .cpp with functors. It contains the same lines plus the list algorithms that registered each functor. This is a separate file to avoid unnecessary ccache misses. - The control flow for the functor cache creation case (`DisableJIT=True` + `DisableCache=True`) is simplified. - `DisableJIT=True` will also prevent using an alredy existing .so that was made in a previous run with JIT enabled. In practice, disabling JIT means that all functors must be found in the cache. - If JIT is disabled and not all functors are in the cache, the start transition will fail and ERROR messages will be printed with complete details of the missing functors. - Add `KeepTemp` property to control whether cpp (and log) files are kept when functors are JIT compiled. This replaces controlling that behaviour with OutputLevel.
Showing
- Phys/FunctorCore/CMakeLists.txt 1 addition, 1 deletionPhys/FunctorCore/CMakeLists.txt
- Phys/FunctorCore/include/Functors/IFactory.h 6 additions, 5 deletionsPhys/FunctorCore/include/Functors/IFactory.h
- Phys/FunctorCore/src/Components/Factory.cpp 94 additions, 61 deletionsPhys/FunctorCore/src/Components/Factory.cpp
- Phys/FunctorCore/tests/qmtest/example_test.qmt 1 addition, 0 deletionsPhys/FunctorCore/tests/qmtest/example_test.qmt
- Phys/FunctorCore/tests/qmtest/test_functor_compose.qmt 2 additions, 1 deletionPhys/FunctorCore/tests/qmtest/test_functor_compose.qmt
- Phys/FunctorCore/tests/qmtest/test_functor_datahandle.qmt 2 additions, 1 deletionPhys/FunctorCore/tests/qmtest/test_functor_datahandle.qmt
- Phys/FunctorCore/tests/qmtest/test_functors.qmt 1 addition, 0 deletionsPhys/FunctorCore/tests/qmtest/test_functors.qmt
- Phys/FunctorCore/tests/qmtest/test_functors_tested.qmt 1 addition, 0 deletionsPhys/FunctorCore/tests/qmtest/test_functors_tested.qmt
- Phys/FunctorCore/tests/qmtest/test_vector_functors_1_4.qmt 1 addition, 1 deletionPhys/FunctorCore/tests/qmtest/test_vector_functors_1_4.qmt
- Phys/FunctorCore/tests/qmtest/test_vector_functors_2_4.qmt 1 addition, 1 deletionPhys/FunctorCore/tests/qmtest/test_vector_functors_2_4.qmt
- Phys/FunctorCore/tests/qmtest/test_vector_functors_3_4.qmt 1 addition, 1 deletionPhys/FunctorCore/tests/qmtest/test_vector_functors_3_4.qmt
- Phys/FunctorCore/tests/qmtest/test_vector_functors_4_4.qmt 1 addition, 1 deletionPhys/FunctorCore/tests/qmtest/test_vector_functors_4_4.qmt
- Phys/FunctorCore/tests/qmtest/vertexCutFunctors.qmt 1 addition, 0 deletionsPhys/FunctorCore/tests/qmtest/vertexCutFunctors.qmt
Loading
-
mentioned in commit 72108ca9
-
mentioned in merge request !3635 (merged)
Please register or sign in to comment