[PR #13604] [CLOSED] use default nvidia-smi as fallback when on WSL2 #60986

Closed
opened 2026-04-29 16:04:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13604
Author: @pcastellazzi
Created: 1/2/2026
Status: Closed

Base: mainHead: pcastellazzi-nvidia-smi-wsl2


📝 Commits (1)

  • e77c71b use default nvidia-smi as fallback when on WSL2

📊 Changes

1 file changed (+6 additions, -1 deletions)

View changed files

📝 scripts/install.sh (+6 -1)

📄 Description

As described here, nvidia-smi may not be available via PATH.

To fix the issue, install.sh now checks for the presence of /usr/lib/wsl/lib/nvidia-smi and adds /usr/lib/wsl/lib/ as the final element of PATH to be used as a fallback.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13604 **Author:** [@pcastellazzi](https://github.com/pcastellazzi) **Created:** 1/2/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pcastellazzi-nvidia-smi-wsl2` --- ### 📝 Commits (1) - [`e77c71b`](https://github.com/ollama/ollama/commit/e77c71b3f807a4870a3c8e0584b8b2ace2f7e515) use default nvidia-smi as fallback when on WSL2 ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `scripts/install.sh` (+6 -1) </details> ### 📄 Description As described [here](https://docs.nvidia.com/cuda/wsl-user-guide/index.html#known-limitations-for-linux-cuda-applications), `nvidia-smi` may not be available via `PATH`. To fix the issue, `install.sh` now checks for the presence of `/usr/lib/wsl/lib/nvidia-smi` and adds `/usr/lib/wsl/lib/` as the final element of `PATH` to be used as a fallback. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 16:04:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#60986