I try to run the code with multi-thread and limited range.
but it fails and gives me error.
Here I provide a simple code which can reproduce the error for me.
// Run on lxplus7
// ensure EnableImplicitMT() works
> using namespace ROOT;
> RDataFrame d(0);
> d.Range(0); // error
......: Range was called with ImplicitMT enabled, but multi-thread is not supported.
by the way, if I use the default ROOT version on lxplus, EnableImplicitMT() does not work
and say I have to build it with some options.
after I run the thisroot.sh, it works for most of cases.
what’s the difference them? even if I use the same version, I still need to run the source command.
as the error message says,
Range is not available when running on multiple threads. Also see the docs.
The default ROOT version available on lxplus has not been built with imt=ON, so multi-threading is not available. On lxplus, I would suggest to use one of the ROOT versions available with LCG views, e.g.
can you update the lcg link?
To check what ROOT version is contained in an LCG release, check lcginfo.cern.ch.
change https://lcginfo.cern.ch/ to http://lcginfo.cern.ch/
https one doesn’t work for me.
Ah thank you, missed that one! It’s now https://github.com/root-project/web/pull/333 , will be merged soon.
EDIT: should be ok now
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.