Closed tmadlener closed 4 months ago
@jmcarcell this should make this cherry-pick obsolete: https://github.com/key4hep/key4hep-spack/blob/dc0b2bc4aaad8f3ef5f3c7f62ff5b0277a554eee/.cherry-pick#L37
(Also that threw me for quite some loop ;) )
Thanks @tmadlener :)
The current implementation does not compile with
onnxruntime@1.17.1
. It works in CI, because it picks up v1.10.0 there. This PR should make this work with older and newer versions of the library. The most notable changes areFindONNXRuntime
now creates anonnxruntime::onnxruntime
target (similar to the one that is provided by newer versions of onnxruntime) and this is used throughout the CMake configuration.onnxruntime
(i.e. the new version) and only falls back toONNXRuntime
if it can't find thatExperimental
namespace and directly goes for theOrt
namespace, which should be available for 1.10.0The last bit required the introduction of an
Ort::MemoryInfo
that is necessary to create tensors. This now creates the tensors on the CPU, I am not sure if that is going to be an issue or not for running things on GPU. Is running on GPU something that is currently done?