fix: skip ROCm EP registration when not available in ORT build
Some checks failed
release / build (push) Failing after 56s

Eliminates the spurious ERROR log from ORT when ROCm isn't compiled in.
Checks is_available() before attempting registration so the session
correctly falls back to CPU without noise.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Breadway 2026-06-07 15:53:06 +08:00
parent efb3af70de
commit 3b7609f354
3 changed files with 16 additions and 10 deletions

8
Cargo.lock generated
View file

@ -314,7 +314,7 @@ dependencies = [
[[package]]
name = "breadman"
version = "0.1.0"
version = "0.2.0"
dependencies = [
"anyhow",
"breadpad-shared",
@ -331,7 +331,7 @@ dependencies = [
[[package]]
name = "breadpad"
version = "0.1.0"
version = "0.2.0"
dependencies = [
"anyhow",
"breadpad-shared",
@ -350,7 +350,7 @@ dependencies = [
[[package]]
name = "breadpad-shared"
version = "0.1.0"
version = "0.2.0"
dependencies = [
"anyhow",
"bread-theme",
@ -376,7 +376,7 @@ dependencies = [
[[package]]
name = "breadpad-test"
version = "0.1.0"
version = "0.2.0"
dependencies = [
"anyhow",
"breadpad-shared",