all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Elsing <david.elsing@posteo.net>
To: 69591@debbugs.gnu.org
Cc: David Elsing <david.elsing@posteo.net>
Subject: [bug#69591] [PATCH v2 20/31] gnu: Add qnnpack.
Date: Tue, 12 Mar 2024 22:51:48 +0000	[thread overview]
Message-ID: <20240312225211.16427-20-david.elsing@posteo.net> (raw)
In-Reply-To: <20240312224712.15578-1-david.elsing@posteo.net>

* gnu/packages/machine-learning.scm (qnnpack): New variable.
---
 gnu/packages/machine-learning.scm | 49 +++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 72b11cca5f..bc1aa308a9 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -4025,6 +4025,55 @@ (define-public nnpack
       (supported-systems '("x86_64-linux" "armhf-linux" "aarch64-linux"))
       (license license:bsd-2))))
 
+(define-public qnnpack
+  (let ((commit "7d2a4e9931a82adc3814275b6219a03e24e36b4c")
+        (revision "0"))
+    (package
+      (name "qnnpack")
+      (version (git-version "0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/pytorch/qnnpack")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "1dgzriiaz9arsrfwhx42y4l74wbzn6xvdmllfb66v4pmvi5gpxc5"))
+         (modules '((guix build utils)))
+         (snippet
+          '(delete-file-recursively "deps"))))
+      (build-system cmake-build-system)
+      (arguments
+       (list
+        ;; The shared library build fails with linker errors, so we build the
+        ;; static library with -fPIC as in the bundled PyTorch version.
+        #:configure-flags
+        ''("-DQNNPACK_LIBRARY_TYPE=static"
+           "-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'unpack 'patch-cmake
+              (lambda _
+                (substitute* "CMakeLists.txt"
+                  (("IF.*SOURCE_DIR.*")
+                   "IF(FALSE)\n")
+                  (("IF\\(NOT TARGET.*")
+                   "IF(FALSE)\n")
+                  (("TARGET_LINK_LIBRARIES.*(fxdiv|psimd|fp16)\\).*")
+                   "")
+                  (("(TARGET_LINK_LIBRARIES.*) fp16 (.*)" _ before after)
+                   (string-append before " " after))))))))
+      (inputs (list clog cpuinfo fp16 fxdiv psimd pthreadpool))
+      (native-inputs (list googletest googlebenchmark))
+      (home-page "https://github.com/pytorch/qnnpack")
+      (synopsis "Quantized Neural Network PACKage")
+      (description "QNNPACK is a library for low-precision neural network
+inference.  It contains the implementation of common neural network operators
+on quantized 8-bit tensors.")
+      (license license:bsd-3))))
+
 (define-public xnnpack
   ;; There's currently no tag on this repo.
   (let ((version "0.0")
-- 
2.41.0





  parent reply	other threads:[~2024-03-12 23:21 UTC|newest]

Thread overview: 140+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-06 19:37 [bug#69591] [PATCH 00/31] Unbundle and update python-pytorch David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 01/31] gnu: asmjit: Update to commit 3ca5c18 David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 02/31] gnu: Add python-typing-extensions-4.10 David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 03/31] gnu: Add python-optree David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 04/31] gnu: Add python-pytest-flakefinder David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 05/31] gnu: Add python-pytest-shard David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 06/31] gnu: Add python-expecttest David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 07/31] gnu: Add python-pytest-rerunfailures-13 David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 08/31] gnu: Add miniz David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 09/31] gnu: Add miniz-for-pytorch David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 10/31] gnu: Add libnop David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 11/31] gnu: Remove flatbuffers-next-shared David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 12/31] gnu: python-flatbuffers-next: Update to 23.5.26 David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 13/31] gnu: pthreadpool: Update to commit 178e3e0 David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 14/31] gnu: cpuinfo: Update to commit aa4b216 David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 15/31] gnu: clog: Add "-DUSE_SYSTEM_LIBS=ON" configure flag David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 16/31] gnu: nnpack: Update to commit 70a77f4 David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 17/31] gnu: oneapi-dnnl: Update to 3.3.5 David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 18/31] gnu: Add tensorpipe David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 19/31] gnu: Add fbgemm David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 20/31] gnu: Add qnnpack David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 21/31] gnu: Add foxi David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 22/31] gnu: Add ideep-pytorch David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 23/31] gnu: xnnpack: Update to commit 51a9875 David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 24/31] gnu: Remove xnnpack-for-torch2 David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 25/31] gnu: Add qnnpack-pytorch David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 26/31] gnu: python-pytorch: Update to 2.2.1 and unbundle dependencies David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 27/31] gnu: python-torchvision: Update to 0.17.1 David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 28/31] gnu: Add ideep-pytorch-for-r-torch David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 29/31] gnu: Add oneapi-dnnl-for-r-torch David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 30/31] gnu: Add qnnpack-pytorch-for-r-torch David Elsing
2024-03-06 19:40 ` [bug#69591] [PATCH 31/31] gnu: python-pytorch-for-r-torch: Adjust to new python-pytorch David Elsing
2024-03-12 22:46 ` [bug#69591] [PATCH v2 00/31] Unbundle and update python-pytorch David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 01/31] gnu: asmjit: Update to commit 3ca5c18 David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 02/31] gnu: Add python-typing-extensions-4.10 David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 03/31] gnu: Add python-optree David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 04/31] gnu: Add python-pytest-flakefinder David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 05/31] gnu: Add python-pytest-shard David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 06/31] gnu: Add python-expecttest David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 07/31] gnu: Add python-pytest-rerunfailures-13 David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 08/31] gnu: Add miniz David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 09/31] gnu: Add miniz-for-pytorch David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 10/31] gnu: Add libnop David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 11/31] gnu: Remove flatbuffers-next-shared David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 12/31] gnu: python-flatbuffers-next: Update to 23.5.26 David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 13/31] gnu: pthreadpool: Update to commit 178e3e0 David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 14/31] gnu: cpuinfo: Update to commit aa4b216 David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 15/31] gnu: clog: Add "-DUSE_SYSTEM_LIBS=ON" configure flag David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 16/31] gnu: nnpack: Update to commit 70a77f4 David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 17/31] gnu: oneapi-dnnl: Update to 3.3.5 David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 18/31] gnu: Add tensorpipe David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 19/31] gnu: Add fbgemm David Elsing
2024-03-12 22:51   ` David Elsing [this message]
2024-03-12 22:51   ` [bug#69591] [PATCH v2 21/31] gnu: Add foxi David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 22/31] gnu: Add ideep-pytorch David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 23/31] gnu: xnnpack: Update to commit 51a9875 David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 24/31] gnu: Remove xnnpack-for-torch2 David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 25/31] gnu: Add qnnpack-pytorch David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 26/31] gnu: python-pytorch: Update to 2.2.1 and unbundle dependencies David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 27/31] gnu: python-torchvision: Update to 0.17.1 David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 28/31] gnu: Add ideep-pytorch-for-r-torch David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 29/31] gnu: Add oneapi-dnnl-for-r-torch David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 30/31] gnu: Add qnnpack-pytorch-for-r-torch David Elsing
2024-03-12 22:51   ` [bug#69591] [PATCH v2 31/31] gnu: python-pytorch-for-r-torch: Adjust to new python-pytorch David Elsing
2024-03-20 22:37   ` [bug#69591] [PATCH v3 00/32] Unbundle and update python-pytorch David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 01/32] gnu: asmjit: Update to commit 3ca5c18 David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 02/32] gnu: Add python-typing-extensions-4.10 David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 03/32] gnu: Add python-optree David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 04/32] gnu: Add python-pytest-flakefinder David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 05/32] gnu: Add python-pytest-shard David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 06/32] gnu: Add python-expecttest David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 07/32] gnu: Add python-pytest-rerunfailures-13 David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 08/32] gnu: Add miniz David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 09/32] gnu: Add miniz-for-pytorch David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 10/32] gnu: Add libnop David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 11/32] gnu: Remove flatbuffers-next-shared David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 12/32] gnu: python-flatbuffers-next: Update to 23.5.26 David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 13/32] gnu: pthreadpool: Update to commit 178e3e0 David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 14/32] gnu: cpuinfo: Update to commit aa4b216 David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 15/32] gnu: clog: Add "-DUSE_SYSTEM_LIBS=ON" configure flag David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 16/32] gnu: nnpack: Update to commit 70a77f4 David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 17/32] gnu: oneapi-dnnl: Update to 3.3.5 David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 18/32] gnu: Add tensorpipe David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 19/32] gnu: Add fbgemm David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 20/32] gnu: Add qnnpack David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 21/32] gnu: Add foxi David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 22/32] gnu: Add ideep-pytorch David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 23/32] gnu: xnnpack: Update to commit 51a9875 David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 24/32] gnu: Remove xnnpack-for-torch2 David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 25/32] gnu: Add qnnpack-pytorch David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 26/32] gnu: python-pytorch: Update to 2.2.1 and unbundle dependencies David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 27/32] gnu: Add python-pytorch-avx David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 28/32] gnu: python-torchvision: Update to 0.17.1 David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 29/32] gnu: Add ideep-pytorch-for-r-torch David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 30/32] gnu: Add oneapi-dnnl-for-r-torch David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 31/32] gnu: Add qnnpack-pytorch-for-r-torch David Elsing
2024-03-20 22:38     ` [bug#69591] [PATCH v3 32/32] gnu: python-pytorch-for-r-torch: Adjust to new python-pytorch David Elsing
2024-03-23 21:40     ` [bug#69591] [PATCH v4 00/32] Unbundle and update python-pytorch David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 01/32] gnu: asmjit: Update to commit 3ca5c18 David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 02/32] gnu: Add python-typing-extensions-4.10 David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 03/32] gnu: Add python-optree David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 04/32] gnu: Add python-pytest-flakefinder David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 05/32] gnu: Add python-pytest-shard David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 06/32] gnu: Add python-expecttest David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 07/32] gnu: Add python-pytest-rerunfailures-13 David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 08/32] gnu: Add miniz David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 09/32] gnu: Add miniz-for-pytorch David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 10/32] gnu: Add libnop David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 11/32] gnu: Remove flatbuffers-next-shared David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 12/32] gnu: python-flatbuffers-next: Update to 23.5.26 David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 13/32] gnu: pthreadpool: Update to commit 178e3e0 David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 14/32] gnu: cpuinfo: Update to commit aa4b216 David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 15/32] gnu: clog: Add "-DUSE_SYSTEM_LIBS=ON" configure flag David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 16/32] gnu: nnpack: Update to commit 70a77f4 David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 17/32] gnu: oneapi-dnnl: Update to 3.3.5 David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 18/32] gnu: Add tensorpipe David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 19/32] gnu: Add fbgemm David Elsing
2024-03-23 22:04       ` [bug#69591] [PATCH v4 20/32] gnu: Add qnnpack David Elsing
2024-03-23 22:05       ` [bug#69591] [PATCH v4 21/32] gnu: Add foxi David Elsing
2024-03-23 22:05       ` [bug#69591] [PATCH v4 22/32] gnu: Add ideep-pytorch David Elsing
2024-03-23 22:05       ` [bug#69591] [PATCH v4 23/32] gnu: xnnpack: Update to commit 51a9875 David Elsing
2024-03-23 22:05       ` [bug#69591] [PATCH v4 24/32] gnu: Remove xnnpack-for-torch2 David Elsing
2024-03-23 22:05       ` [bug#69591] [PATCH v4 25/32] gnu: Add qnnpack-pytorch David Elsing
2024-03-23 22:05       ` [bug#69591] [PATCH v4 26/32] gnu: python-pytorch: Update to 2.2.1 and unbundle dependencies David Elsing
2024-03-23 22:05       ` [bug#69591] [PATCH v4 27/32] gnu: Add python-pytorch-avx David Elsing
2024-03-23 22:05       ` [bug#69591] [PATCH v4 28/32] gnu: python-torchvision: Update to 0.17.1 David Elsing
2024-03-23 22:05       ` [bug#69591] [PATCH v4 29/32] gnu: Add ideep-pytorch-for-r-torch David Elsing
2024-03-23 22:05       ` [bug#69591] [PATCH v4 30/32] gnu: Add oneapi-dnnl-for-r-torch David Elsing
2024-03-23 22:05       ` [bug#69591] [PATCH v4 31/32] gnu: Add qnnpack-pytorch-for-r-torch David Elsing
2024-03-23 22:05       ` [bug#69591] [PATCH v4 32/32] gnu: python-pytorch-for-r-torch: Adjust to new python-pytorch David Elsing
2024-06-18 10:30       ` [bug#69591] [PATCH v4 00/32] Unbundle and update python-pytorch Ludovic Courtès
2024-06-23 14:05         ` David Elsing
2024-06-23 21:56           ` Ludovic Courtès
2024-06-22 14:28 ` [bug#69591] [PATCH] services: shepherd: Support “free-form” services Ludovic Courtès
2024-06-23 21:58   ` [bug#71739] " Ludovic Courtès
2024-06-23 21:57   ` [bug#69591] " Ludovic Courtès
2024-06-24  0:40   ` Maxim Cournoyer
2024-06-24 13:07     ` Ludovic Courtès
2024-06-25  3:22       ` Maxim Cournoyer
2024-06-26 22:21         ` bug#71739: " Ludovic Courtès

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=20240312225211.16427-20-david.elsing@posteo.net \
    --to=david.elsing@posteo.net \
    --cc=69591@debbugs.gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.