[PR #2599] [MERGED] Explicitly disable AVX2 on GPU builds #36814

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2599
Author: @dhiltgen
Created: 2/19/2024
Status: Merged
Merged: 2/19/2024
Merged by: @dhiltgen

Base: mainHead: fix_avx


📝 Commits (1)

  • db2a9ad Explicitly disable AVX2 on GPU builds

📊 Changes

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

View changed files

📝 llm/generate/gen_windows.ps1 (+1 -1)

📄 Description

Even though we weren't setting it to on, somewhere in the cmake config it was getting toggled on. By explicitly setting it to off, we get /arch:AVX as intended.

fixes #2527


🔄 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/2599 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 2/19/2024 **Status:** ✅ Merged **Merged:** 2/19/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `fix_avx` --- ### 📝 Commits (1) - [`db2a9ad`](https://github.com/ollama/ollama/commit/db2a9ad1feb012d2b1e635c39d10936ab3aafc27) Explicitly disable AVX2 on GPU builds ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `llm/generate/gen_windows.ps1` (+1 -1) </details> ### 📄 Description Even though we weren't setting it to on, somewhere in the cmake config it was getting toggled on. By explicitly setting it to off, we get `/arch:AVX` as intended. fixes #2527 --- <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:26:48 -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#36814