Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove roofit option again #283

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ jobs:
run: |
conda activate root-nightly
mkdir -p build && cd build
# The conda nightlies are not built with a cutting-edge ROOT version that the RooFit benchmarks require
cmake -Dcuda=OFF -Droofit=OFF ..
cmake -Dcuda=OFF ..
cmake --build .

- name: Run benchmarks
Expand Down
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ endif()
project(rootbench)

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

include(CMakeToolsHelpers OPTIONAL)
include(ExternalProject)
Expand Down
8 changes: 3 additions & 5 deletions root/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
add_subdirectory(hist)
add_subdirectory(interpreter)
add_subdirectory(io)
add_subdirectory(hist)
add_subdirectory(math)
add_subdirectory(pyroot)
if (roofit)
add_subdirectory(roofit)
endif()
add_subdirectory(tree)
add_subdirectory(roofit)
add_subdirectory(tmva)
add_subdirectory(tree)
2 changes: 1 addition & 1 deletion root/roofit/histfactory/TestWorkspaces.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ TestWorkspaces::getWorkspace001(RooStats::HistFactory::HistoToWorkspaceFactoryFa
// in case the file is not found
if (bool bfile = gSystem->AccessPathName(inputFile.c_str())) {
std::cout << "Input file is not found - run prepareHistFactory script " << std::endl;
gROOT->ProcessLine("mkdir -p hf001");
gSystem->mkdir("hf001");
gROOT->ProcessLine(".! prepareHistFactory hf001");
bfile = gSystem->AccessPathName(inputFile.c_str());
if (bfile) {
Expand Down
4 changes: 3 additions & 1 deletion root/roofit/histfactory/benchHistFactory.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class TestData {
using namespace RooFit;

RooStats::HistFactory::HistoToWorkspaceFactoryFast::Configuration hfCfg;
std::unique_ptr<RooWorkspace> ws = TestWorkspaces::getWorkspace001(hfCfg);
ws = TestWorkspaces::getWorkspace001(hfCfg);

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

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

std::unique_ptr<RooWorkspace> ws;

// Dataset with the floating parameters as columns, and each call to getVal
// in the minimization path as rows.
std::unique_ptr<RooDataSet> minimizationPath;
Expand Down
2 changes: 1 addition & 1 deletion root/roofit/roofit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RB_ADD_GBENCHMARK(benchRooFitBackends
LIBRARIES Core MathCore RooFitCore RooFit)

if(cuda)
target_compile_definitions(benchRooFitBinned PRIVATE DO_BENCH_ROOFIT_CUDA)
target_compile_definitions(benchRooFitUnbinned PRIVATE DO_BENCH_ROOFIT_CUDA)
target_compile_definitions(benchRooFitBackends PRIVATE DO_BENCH_ROOFIT_CUDA)
endif()

Expand Down
Loading