mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #575] [MERGED] Enhance GPU detection logic to support WSL2 environments #20383
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/575
Author: @Mulugruntz
Created: 1/25/2024
Status: ✅ Merged
Merged: 1/25/2024
Merged by: @tjbck
Base:
main← Head:sgiffard/nvidia-gpu-on-wsl2📝 Commits (1)
2cb4112Enhance GPU detection logic to support WSL2 environments📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
run-compose.sh(+2 -2)📄 Description
Pull Request Description:
This pull request addresses the issue outlined in #574, where the existing GPU detection logic in the setup script failed to identify NVIDIA GPUs in WSL2 environments. The modification introduced by this PR allows the script to detect NVIDIA GPUs using both
lspciandnvidia-smi, enhancing compatibility with WSL2 and potentially other non-standard environments.Changes Made:
lspci; if that fails, it then triesnvidia-smi.lspcioutput.Benefits:
Testing:
lspcisuccessfully identifies NVIDIA GPUs.Acknowledgments:
Thanks to the community for the feedback and suggestions on improving GPU detection, and to the maintainers for reviewing this enhancement.
I look forward to any further feedback or requests for adjustments to ensure this change meets the project's standards and effectively addresses the identified issue.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.