VTK 9.6 ONNX runtime installation

Hi, I tried to install ONNX runtime in order to use the new filter FiltersONNX. But I got some issues. First of all, I get an error message that the supported API versions is only [1, 17]. So normally, I can use 1.17.1 isn’t it ? My other question is what I have to install ? Directly the onnxruntime package or I need to rebuild from the source ? Thanks for your help.

@Guillaume_Gisbert

Hi,

The recommended way to use the ONNX module is to download the release here : Releases · microsoft/onnxruntime · GitHub. Just so you know, we currently test on version 1.22.0.

Then, in your ParaView cmake configuration, you need to enable PARAVIEW_PLUGIN_ENABLE_ONNXPlugin, VTK_MODULE_ENABLE_VTK_FiltersONNX and set the onnxruntime_DIR to /onnxruntime_path/lib/cmake/onnxruntime.

Best,

1 Like

Thank you for your quick answer. When I download only the binary package of onnxruntime, I have no folder /lib/cmake/onnxruntime. So do I need to download the source and generate the bin ? There si a specific configuration ?