[GH-ISSUE #6697] IGPUMemLimit/rocmMinimumMemory are undefined #4214

Closed
opened 2026-04-12 15:09:05 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @wangzd0209 on GitHub (Sep 8, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6697

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

when i first run the code with goland,i can not compile it. it said the IGPUMemLimit/rocmMinimumMemory is undefined.
GPUMemLimit or rocmMinimumMemory is just a const. Can anyone help me?
屏幕截图 2024-09-08 145031

OS

Windows

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @wangzd0209 on GitHub (Sep 8, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6697 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? when i first run the code with goland,i can not compile it. it said the IGPUMemLimit/rocmMinimumMemory is undefined. GPUMemLimit or rocmMinimumMemory is just a const. Can anyone help me? ![屏幕截图 2024-09-08 145031](https://github.com/user-attachments/assets/016bc32f-9f31-4837-813a-9004c6ea99e5) ### OS Windows ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the question label 2026-04-12 15:09:05 -05:00
Author
Owner

@dhiltgen commented on GitHub (Sep 9, 2024):

Ollama utilizes cgo to compile and leverage native code. You'll need to enable this by setting CGO_ENABLED=1 in your environment. You'll also need to make sure gcc is in your path.

<!-- gh-comment-id:2338535458 --> @dhiltgen commented on GitHub (Sep 9, 2024): Ollama utilizes [cgo](https://go.dev/blog/cgo) to compile and leverage native code. You'll need to enable this by setting CGO_ENABLED=1 in your environment. You'll also need to make sure gcc is in your path.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#4214