Skip to content

Commit d479d99

Browse files
committed
Remove roofit option again
With the conda nighlies being up-to-date again, we don't need the option to disable RooFit anymore (it was introduced for the CI to be green, as the RooFit benchmarks used new things that were not available in the outdated nightlies).
1 parent 8107236 commit d479d99

File tree

6 files changed

+9
-11
lines changed

6 files changed

+9
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ jobs:
4646
run: |
4747
conda activate root-nightly
4848
mkdir -p build && cd build
49-
# The conda nightlies are not built with a cutting-edge ROOT version that the RooFit benchmarks require
50-
cmake -Dcuda=OFF -Droofit=OFF ..
49+
cmake -Dcuda=OFF ..
5150
cmake --build .
5251
5352
- name: Run benchmarks

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ endif()
1010
project(rootbench)
1111

1212
option(cuda "Build benchmarks that run on CUDA GPUs" OFF)
13-
option(roofit "Build RooFit benchmarks" ON)
1413

1514
include(CMakeToolsHelpers OPTIONAL)
1615
include(ExternalProject)

root/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1+
add_subdirectory(hist)
12
add_subdirectory(interpreter)
23
add_subdirectory(io)
3-
add_subdirectory(hist)
44
add_subdirectory(math)
55
add_subdirectory(pyroot)
6-
if (roofit)
7-
add_subdirectory(roofit)
8-
endif()
9-
add_subdirectory(tree)
6+
add_subdirectory(roofit)
107
add_subdirectory(tmva)
8+
add_subdirectory(tree)

root/roofit/histfactory/TestWorkspaces.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ TestWorkspaces::getWorkspace001(RooStats::HistFactory::HistoToWorkspaceFactoryFa
2121
// in case the file is not found
2222
if (bool bfile = gSystem->AccessPathName(inputFile.c_str())) {
2323
std::cout << "Input file is not found - run prepareHistFactory script " << std::endl;
24-
gROOT->ProcessLine("mkdir -p hf001");
24+
gSystem->mkdir("hf001");
2525
gROOT->ProcessLine(".! prepareHistFactory hf001");
2626
bfile = gSystem->AccessPathName(inputFile.c_str());
2727
if (bfile) {

root/roofit/histfactory/benchHistFactory.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TestData {
2323
using namespace RooFit;
2424

2525
RooStats::HistFactory::HistoToWorkspaceFactoryFast::Configuration hfCfg;
26-
std::unique_ptr<RooWorkspace> ws = TestWorkspaces::getWorkspace001(hfCfg);
26+
ws = TestWorkspaces::getWorkspace001(hfCfg);
2727

2828
auto *mc = static_cast<RooStats::ModelConfig *>(ws->obj("ModelConfig"));
2929

@@ -47,6 +47,8 @@ class TestData {
4747
minimizationPath = std::make_unique<RooDataSet>(*m.getLogDataSet());
4848
}
4949

50+
std::unique_ptr<RooWorkspace> ws;
51+
5052
// Dataset with the floating parameters as columns, and each call to getVal
5153
// in the minimization path as rows.
5254
std::unique_ptr<RooDataSet> minimizationPath;

root/roofit/roofit/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RB_ADD_GBENCHMARK(benchRooFitBackends
1414
LIBRARIES Core MathCore RooFitCore RooFit)
1515

1616
if(cuda)
17-
target_compile_definitions(benchRooFitBinned PRIVATE DO_BENCH_ROOFIT_CUDA)
17+
target_compile_definitions(benchRooFitUnbinned PRIVATE DO_BENCH_ROOFIT_CUDA)
1818
target_compile_definitions(benchRooFitBackends PRIVATE DO_BENCH_ROOFIT_CUDA)
1919
endif()
2020

0 commit comments

Comments
 (0)