public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Paul Zander" <negril.nx+gentoo@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sci-ml/ollama/
Date: Mon, 07 Apr 2025 18:22:56 +0000 (UTC)	[thread overview]
Message-ID: <1744049573.4c15d8ccb15dbf406efdfda4048901c4e687d8c1.negril.nx+gentoo@gentoo> (raw)

commit:     4c15d8ccb15dbf406efdfda4048901c4e687d8c1
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Mon Apr  7 18:09:33 2025 +0000
Commit:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
CommitDate: Mon Apr  7 18:12:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4c15d8cc

sci-ml/ollama: filter flags in go file comments

Closes: https://bugs.gentoo.org/953049
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>

 sci-ml/ollama/ollama-0.6.3.ebuild | 4 ++++
 sci-ml/ollama/ollama-9999.ebuild  | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/sci-ml/ollama/ollama-0.6.3.ebuild b/sci-ml/ollama/ollama-0.6.3.ebuild
index 9f07083dd..cf664c756 100644
--- a/sci-ml/ollama/ollama-0.6.3.ebuild
+++ b/sci-ml/ollama/ollama-0.6.3.ebuild
@@ -93,6 +93,10 @@ src_prepare() {
 		-e "/PRE_INCLUDE_REGEXES.*hip/d" \
 		-i CMakeLists.txt || die sed
 
+	sed \
+		-e "s/-O3/${CFLAGS}/g" \
+		-i ml/backend/ggml/ggml/src/ggml-cpu/cpu.go || die sed
+
 	if use amd64; then
 		if ! use cpu_flags_x86_avx; then
 			sed -e "/ggml_add_cpu_backend_variant(sandybridge/s/^/# /g" -i ml/backend/ggml/ggml/src/CMakeLists.txt || die

diff --git a/sci-ml/ollama/ollama-9999.ebuild b/sci-ml/ollama/ollama-9999.ebuild
index 7147e4cc8..6726a5970 100644
--- a/sci-ml/ollama/ollama-9999.ebuild
+++ b/sci-ml/ollama/ollama-9999.ebuild
@@ -93,6 +93,10 @@ src_prepare() {
 		-e "/PRE_INCLUDE_REGEXES.*hip/d" \
 		-i CMakeLists.txt || die sed
 
+	sed \
+		-e "s/-O3/${CFLAGS}/g" \
+		-i ml/backend/ggml/ggml/src/ggml-cpu/cpu.go || die sed
+
 	if use amd64; then
 		if ! use cpu_flags_x86_avx; then
 			sed -e "/ggml_add_cpu_backend_variant(sandybridge/s/^/# /g" -i ml/backend/ggml/ggml/src/CMakeLists.txt || die


             reply	other threads:[~2025-04-07 18:23 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-07 18:22 Paul Zander [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-10-19 21:04 [gentoo-commits] repo/proj/guru:dev commit in: sci-ml/ollama/ Paul Zander
2025-10-19 21:04 Paul Zander
2025-10-19 20:03 Sv. Lockal
2025-10-05 20:46 Paul Zander
2025-10-04 21:12 Paul Zander
2025-09-07  7:32 Paul Zander
2025-09-07  7:32 Paul Zander
2025-09-07  7:32 Paul Zander
2025-08-09 14:20 Paul Zander
2025-07-31  8:30 Paul Zander
2025-07-31  8:30 Paul Zander
2025-07-31  8:30 Paul Zander
2025-07-15 12:10 David Roman
2025-07-15  7:47 Dawn Xu
2025-07-11 13:31 Paul Zander
2025-07-08 17:04 Paul Zander
2025-06-30  9:15 Paul Zander
2025-06-29 19:32 Paul Zander
2025-06-24 12:06 Paul Zander
2025-06-24 12:06 Paul Zander
2025-06-16 14:21 Paul Zander
2025-06-11 11:50 Paul Zander
2025-06-11 11:50 Paul Zander
2025-05-24 19:26 Paul Zander
2025-05-23 19:37 Paul Zander
2025-04-28 18:52 Paul Zander
2025-04-16 12:24 Paul Zander
2025-04-16 12:24 Paul Zander
2025-04-16 12:24 Paul Zander
2025-04-10 21:48 Paul Zander
2025-04-07 18:22 Paul Zander
2025-04-07 18:22 Paul Zander

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1744049573.4c15d8ccb15dbf406efdfda4048901c4e687d8c1.negril.nx+gentoo@gentoo \
    --to=negril.nx+gentoo@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox