[PR #1921] [MERGED] fix gpu_test.go Error (same type) uint64->uint32 #36598

Closed
opened 2026-04-22 21:14:15 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1921
Author: @fpreiss
Created: 1/11/2024
Status: Merged
Merged: 1/11/2024
Merged by: @jmorganca

Base: mainHead: fpreiss/basic_gpu_test


📝 Commits (1)

  • 99c22ed fix gpu_test.go Error (same type) uint64->uint32

📊 Changes

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

View changed files

📝 gpu/gpu_test.go (+1 -1)

📄 Description

When running the test suite on linux with a cuda build I get the following error without this commit:

--- FAIL: TestBasicGetGPUInfo (0.06s)
    gpu_test.go:21: 
                Error Trace:    /build/ollama-cuda/src/ollama/gpu/gpu_test.go:21
                Error:          Elements should be the same type
                Test:           TestBasicGetGPUInfo
FAIL
FAIL    github.com/jmorganca/ollama/gpu 0.078s

This was due to a type mismatch between GetGPUInfo() and the corresponding TestBasicGetGPUInfo() test. This simple commit fixes it on the test side and now I get the following test output:

ok      github.com/jmorganca/ollama/gpu 0.090s

(my first line of go btw.)


🔄 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/1921 **Author:** [@fpreiss](https://github.com/fpreiss) **Created:** 1/11/2024 **Status:** ✅ Merged **Merged:** 1/11/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `fpreiss/basic_gpu_test` --- ### 📝 Commits (1) - [`99c22ed`](https://github.com/ollama/ollama/commit/99c22ed3f5f82e798cc3d9574a88d4df0b3877cd) fix gpu_test.go Error (same type) uint64->uint32 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `gpu/gpu_test.go` (+1 -1) </details> ### 📄 Description When running the test suite on linux with a cuda build I get the following error without this commit: ```log --- FAIL: TestBasicGetGPUInfo (0.06s) gpu_test.go:21: Error Trace: /build/ollama-cuda/src/ollama/gpu/gpu_test.go:21 Error: Elements should be the same type Test: TestBasicGetGPUInfo FAIL FAIL github.com/jmorganca/ollama/gpu 0.078s ``` This was due to a type mismatch between `GetGPUInfo()` and the corresponding `TestBasicGetGPUInfo()` test. This simple commit fixes it on the test side and now I get the following test output: ```log ok github.com/jmorganca/ollama/gpu 0.090s ``` (my first line of go btw.) --- <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-22 21:14:15 -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#36598