NumCPU crash with very simple example

The following does not work on ROOT 6.10/04; why?

RooWorkspace w;
w.factory("Gaussian::pdf(x[-100,100],mean[-10,10],sigma[0.1,10])");
auto data = w.pdf("pdf")->generate(*w.var("x"),100000);
auto nll = (RooNLLVar *)w.pdf("pdf")->createNLL(*data, RooFit::NumCPU(4, 3), RooFit::Optimize(2), RooFit::Offset(true));
RooMinimizer m(*nll);
m.minimize("Minuit2");

Hi,

This looks like a bug and it would be nice if you can open a JIRA ticket.
I have seen the crash is happening only when using strategy=3 in NumCPU.
All other strategies work fine
See https://root.cern.ch/doc/master/classRooAbsPdf.html#a536396deee60ae88762b306af45ec399

In your simple example you don’t need strategy =3

Lorenzo

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