Skip to content

Commit 0938b35

Browse files
committed
GPU Standalone: Build OrtInterface only when ONNX is available
1 parent e3fdb85 commit 0938b35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

GPU/GPUTracking/Standalone/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ endif()
139139
add_subdirectory(../../ GPU)
140140
add_library(standalone_support SHARED
141141
${O2_DIR}/Common/Field/src/MagFieldFast.cxx
142-
${O2_DIR}/Common/ML/src/OrtInterface.cxx
143142
${O2_DIR}/Common/Utils/src/StringUtils.cxx
144143
${O2_DIR}/DataFormats/Detectors/TPC/src/CompressedClusters.cxx
145144
${O2_DIR}/DataFormats/Reconstruction/src/TrackParametrization.cxx
@@ -228,6 +227,7 @@ endif()
228227

229228
if(GPUCA_CONFIG_ONNX)
230229
target_link_libraries(standalone_support PRIVATE onnxruntime::onnxruntime)
230+
target_sources(standalone_support PRIVATE ${O2_DIR}/Common/ML/src/OrtInterface.cxx)
231231
endif()
232232

233233
if (GPUCA_BUILD_DEBUG_SANITIZE AND CMAKE_CXX_COMPILER MATCHES "clang\\+\\+")

GPU/GPUTracking/Standalone/tools/dumpGPUDefParam.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/// \author David Rohr
1414

1515
// Run e.g. as (replacing [FILE] and [OUTPUT]:
16-
// echo -e '#define PARAMETER_FILE "[FILE]]"\ngInterpreter->AddIncludePath("'`pwd`'/include/GPU");\n.x share/GPU/tools/dumpGPUDefParam.C("[OUTPUT]")\n.q\n' | root -l -b
16+
// echo -e '#define PARAMETER_FILE "[FILE]"\ngInterpreter->AddIncludePath("'`pwd`'/include/GPU");\n.x share/GPU/tools/dumpGPUDefParam.C("[OUTPUT]")\n.q\n' | root -l -b
1717
// To dump the defaults for AMPERE architecture, run
1818
// echo -e '#define GPUCA_GPUTYPE_AMPERE\n#define PARAMETER_FILE "GPUDefParametersDefaults.h"\ngInterpreter->AddIncludePath("'`pwd`'/include/GPU");\n.x share/GPU/tools/dumpGPUDefParam.C("default_AMPERE.par")\n.q\n' | root -l -b
1919

0 commit comments

Comments
 (0)