File tree Expand file tree Collapse file tree 6 files changed +30
-7
lines changed
simulation/include/ZDCSimulation Expand file tree Collapse file tree 6 files changed +30
-7
lines changed Original file line number Diff line number Diff line change 2121#include " DataFormatsTRD/PID.h"
2222#include " Framework/ProcessingContext.h"
2323#include " Framework/InputRecord.h"
24+ #if __has_include(<onnxruntime/core/session/experimental_onnxruntime_cxx_api.h>)
2425#include < onnxruntime/core/session/experimental_onnxruntime_cxx_api.h>
26+ #else
27+ #include < onnxruntime_cxx_api.h>
28+ #endif
2529#include < memory>
2630#include < vector>
2731#include < array>
Original file line number Diff line number Diff line change 2828#include " DetectorsBase/Propagator.h"
2929
3030#include < fmt/format.h>
31+ #if __has_include(<onnxruntime/core/session/experimental_onnxruntime_cxx_api.h>)
3132#include < onnxruntime/core/session/experimental_onnxruntime_cxx_api.h>
33+ #else
34+ #include < onnxruntime_cxx_api.h>
35+ #endif
3236#include < boost/range.hpp>
3337
3438#include < array>
Original file line number Diff line number Diff line change 1717#ifndef O2_ZDC_FAST_SIMULATIONS_H
1818#define O2_ZDC_FAST_SIMULATIONS_H
1919
20+ #if __has_include(<onnxruntime/core/session/onnxruntime_cxx_api.h>)
2021#include < onnxruntime/core/session/onnxruntime_cxx_api.h>
22+ #else
23+ #include < onnxruntime_cxx_api.h>
24+ #endif
2125#include < optional>
2226#include < mutex>
2327
Original file line number Diff line number Diff line change 1717#ifndef O2_ZDC_FAST_SIMULATIONS_PROCESSORS_H
1818#define O2_ZDC_FAST_SIMULATIONS_PROCESSORS_H
1919
20+ #if __has_include(<onnxruntime/core/session/onnxruntime_cxx_api.h>)
2021#include < onnxruntime/core/session/onnxruntime_cxx_api.h>
22+ #else
23+ #include < onnxruntime_cxx_api.h>
24+ #endif
2125#include < optional>
2226#include < vector>
2327
Original file line number Diff line number Diff line change 2626
2727// inclusions and forward decl for fast sim
2828#ifdef ZDC_FASTSIM_ONNX
29+
30+ #if __has_include(<onnxruntime/core/session/onnxruntime_cxx_api.h>)
2931#include < onnxruntime/core/session/onnxruntime_cxx_api.h>
32+ #else
33+ #include < onnxruntime_cxx_api.h>
34+ #endif
35+
3036namespace o2 ::zdc
3137{
3238namespace fastsim
Original file line number Diff line number Diff line change 99# granted to it by virtue of its status as an Intergovernmental Organization
1010# or submit itself to any jurisdiction.
1111
12- find_package (onnxruntime CONFIG)
13- if (NOT onnxruntime_FOUND)
14- find_package (ONNXRuntime::ONNXRuntime CONFIG)
15- if (ONNXRuntime::ONNXRuntime_FOUND)
16- set (onnxruntime_FOUND 1)
17- add_library (onnxruntime::onnxruntime ALIAS ONNXRuntime::ONNXRuntime)
18- endif ()
12+ find_package (ONNXRuntime::ONNXRuntime CONFIG)
13+ if (ONNXRuntime::ONNXRuntime_FOUND)
14+ set (onnxruntime_FOUND 1)
15+ add_library (onnxruntime::onnxruntime ALIAS ONNXRuntime::ONNXRuntime)
16+ endif ()
17+
18+ if (NOT ONNXRuntime::ONNXRuntime_FOUND)
19+ find_package (onnxruntime CONFIG)
1920endif ()
You can’t perform that action at this time.
0 commit comments