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

Add support for compiling with newer ONNXRuntime #373

Merged
merged 1 commit into from
May 15, 2024

Conversation

jmcarcell
Copy link
Contributor

@jmcarcell jmcarcell commented May 11, 2024

At least version 1.17.1 (this is the most recent one in spack) provides onnxruntimeConfig.cmake and uses the name "onnxruntime" all lower case. This PR should make it possible to build with 1.17.1 (waiting for confirmation if the stack builds) and with the current ONNXRuntime version (CI seems to confirm this)

Related to this, it seems newer versions of ONNXRuntime don't install the headers that are being used by FCCAnalyses (everything under include/onnxruntime/core doesn't get installed except common):

#include "onnxruntime/core/session/experimental_onnxruntime_cxx_api.h"

This seems to have changed from the version that was installed last time, which was 1.10.0. In that one, I can see the whole core folder being installed. For now I'm patching ONNXRuntime but I didn't even find an option in ONNXRuntime to install these. Are these intended to be used then?

See also key4hep/key4hep-spack#578

@kjvbrt kjvbrt merged commit d39a711 into HEP-FCC:master May 15, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants