Skip to content

change @error for @warn on backend initialization error#2775

Closed
mofeing wants to merge 1 commit into
mainfrom
ss/better-init-backend-log-msg
Closed

change @error for @warn on backend initialization error#2775
mofeing wants to merge 1 commit into
mainfrom
ss/better-init-backend-log-msg

Conversation

@mofeing
Copy link
Copy Markdown
Collaborator

@mofeing mofeing commented Apr 6, 2026

As discussed in #2774, it's a lil confusing for users to see an error with backtrace when a backend fails to init. Specially when CPU backend is chosen but a GPU backend fails.

cc @tpapp

@mofeing mofeing requested review from avik-pal and wsmoses April 6, 2026 15:31
@Pangoraw
Copy link
Copy Markdown
Collaborator

Pangoraw commented Apr 6, 2026

maybe just warn so the color is different? i feel like we lose a lot of information there if not in debug

@avik-pal
Copy link
Copy Markdown
Collaborator

avik-pal commented Apr 6, 2026

Note that this only happens when the installed version is a CUDA/ROCM and then during runtime the device isn't available. As another data-point, jax also shows error if there is a similar discrepancy.

@mofeing
Copy link
Copy Markdown
Collaborator Author

mofeing commented Apr 7, 2026

Closed in favor of #2778

@mofeing mofeing closed this Apr 7, 2026
@giordano giordano deleted the ss/better-init-backend-log-msg branch April 18, 2026 18:20
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.

3 participants