From ac2987d1d081697485d3c88298463b275fb66f1d Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Thu, 5 Feb 2026 09:56:10 -0600 Subject: [PATCH 1/3] Changes needed to accomodate removal of deprecated headers in newer Tensorflow releases. Backwords compatible with v2.x Tensorflow --- sbndcode/SBNDCVN/tf/tf_graph.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sbndcode/SBNDCVN/tf/tf_graph.cc b/sbndcode/SBNDCVN/tf/tf_graph.cc index 731de3f1e..41a516892 100644 --- a/sbndcode/SBNDCVN/tf/tf_graph.cc +++ b/sbndcode/SBNDCVN/tf/tf_graph.cc @@ -11,8 +11,9 @@ #include "tf_graph.h" +#include "tensorflow/cc/saved_model/bundle_v2.h" +#include "tensorflow/cc/saved_model/constants.h" #include "tensorflow/cc/saved_model/loader.h" -#include "tensorflow/cc/saved_model/tag_constants.h" #include "tensorflow/core/platform/env.h" #include "tensorflow/core/public/session_options.h" @@ -51,7 +52,7 @@ tf::Graph::Graph(const char* graph_file_name, status = tensorflow::LoadSavedModel(tensorflow::SessionOptions(), tensorflow::RunOptions(), graph_file_name, - {tensorflow::kSavedModelTagServe}, + {}, fBundle); std::cout << "tf_graph loaded SavedModelBundle with status: " << status.ToString() << std::endl; if (!status.ok()) return; From d5db33882dfe179b2151359df31189f6473b00d6 Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Thu, 5 Feb 2026 09:57:04 -0600 Subject: [PATCH 2/3] Add find_package(protobuf REQUIRED) before call other packages which require protobuf. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f93a660ef..b1ca51773 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,7 @@ message(STATUS "${PROJECT_NAME} repository tag: ${GIT_REPOSITORY_TAG}") install_source(LIST RepositoryTag) # these are minimum required versions, not the actual product versions +find_package( protobuf REQUIRED ) find_package( art REQUIRED ) find_package( art_root_io REQUIRED ) find_package( artdaq_core REQUIRED ) From bfaca6ccbf749e45ed867b890fa9522a9ee66a25 Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Thu, 5 Feb 2026 10:00:30 -0600 Subject: [PATCH 3/3] additional CMakeLists.txt changes needed for Spack build --- sbndcode/Commissioning/CMakeLists.txt | 3 ++- test/ci/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sbndcode/Commissioning/CMakeLists.txt b/sbndcode/Commissioning/CMakeLists.txt index c3154622a..8f9c42cee 100644 --- a/sbndcode/Commissioning/CMakeLists.txt +++ b/sbndcode/Commissioning/CMakeLists.txt @@ -1,5 +1,6 @@ add_subdirectory(fcls) - +include_directories(${HEP_HPC_INCLUDE_DIRS}) +include_directories($ENV{OPENMPI_INCLUDE_DIR}) set( MODULE_LIBRARIES larcorealg::Geometry diff --git a/test/ci/CMakeLists.txt b/test/ci/CMakeLists.txt index 738b9c022..b50888112 100644 --- a/test/ci/CMakeLists.txt +++ b/test/ci/CMakeLists.txt @@ -51,4 +51,4 @@ install_scripts(AS_TEST) install_fhicl() -install(FILES fcl_file_checks.list DESTINATION "${sbndcode_UPS_PRODUCT_NAME}/${sbndcode_UPS_PRODUCT_VERSION}/test") +install(FILES fcl_file_checks.list DESTINATION "${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}/${PROJECT_VERSION}/test")