RooFit computation library libRooBatchCompute_AVX2 was loaded before RooFit initialisation began

I am running a code using a steering macro that does run time compilation. Arguments are passed to the interpreter using the format:

gInterpreter->LoadMacro("Macro_Name.cxx+");

The firt time I run the steering macro root ocmpiles the necessary libraries and runs the code. If I try to re-run int, without replacing the + at the end of the LoadMacro with a ++ (which will force a recompile), I get the following message:

Error in <TRint::HandleTermInput()>: std::logic_error caught: RooFit computation library libRooBatchCompute_AVX2 was loaded before RooFit initialisation began.

Thank you very much for reporting this!

I have opened a PR to fix this:

This will also be included in the next patch releases for 6.26 and 6.28, which is 6.26.12 and 6.28.04.

Cheers,
Jonas

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.