Skip to content

How to get the hardware capability? #23059

@idruker-cerence

Description

@idruker-cerence

Describe the issue

onnxruntime can be built with a number of Execution Providers. Let's take CUDA as example. At runtime CUDA is appended as EP to the session options. But if the hardware does not have CUDA and cuDNN drivers installed, Ort::Session() will fail. Is there an elegant way to check the hardware capability before adding an EP and deal with error handling?

To reproduce

That's a query

Urgency

No response

Platform

Linux

OS Version

20.04

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

1.18

ONNX Runtime API

C++

Architecture

X64

Execution Provider

CUDA

Execution Provider Library Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleissues that have not been addressed in a while; categorized by a bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions