From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 59607@debbugs.gnu.org
Subject: [bug#59607] [PATCH 1/8] gnu: Add ncnn.
Date: Sun, 20 Nov 2022 00:14:40 +0100 [thread overview]
Message-ID: <a9149be6281538a384cd71d3de658246b502f177.camel@gmail.com> (raw)
In-Reply-To: <a9bdd1f5c70f0879615809184653358d7f07def3.camel@gmail.com>
* gnu/packages/machine-learning.scm (ncnn): New variable.
---
gnu/packages/machine-learning.scm | 32 +++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index fbc06f96b6..e984e3004b 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -102,6 +102,7 @@ (define-module (gnu packages machine-learning)
#:use-module (gnu packages swig)
#:use-module (gnu packages tls)
#:use-module (gnu packages video)
+ #:use-module (gnu packages vulkan)
#:use-module (gnu packages web)
#:use-module (gnu packages xml)
#:use-module (gnu packages xdisorg)
@@ -749,6 +750,37 @@ (define (delete-ifdefs file)
in terms of new algorithms.")
(license license:gpl3+)))
+(define-public ncnn
+ (package
+ (name "ncnn")
+ (version "20220729")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Tencent/ncnn")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "02na1crxph8m3sqb1c32v83ppxjcmaxyncql89q5mf9ggddmx5c5"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list #:configure-flags
+ #~(list "-DNCNN_AVX=OFF"
+ "-DNCNN_BUILD_TESTS=TRUE"
+ "-DNCNN_SYSTEM_GLSLANG=ON"
+ (string-append "-DGLSLANG_TARGET_DIR="
+ #$(this-package-input "glslang")
+ "/lib/cmake")
+ "-DNCNN_VULKAN=ON")
+ #:tests? #f)) ; XXX: half of the tests fail
+ (inputs (list glslang vulkan-headers vulkan-loader))
+ (native-inputs (list protobuf))
+ (home-page "https://github.com/Tencent/ncnn")
+ (synopsis "Neural network for mobile platforms")
+ (description "NCNN is a framework for building neural networks written in
+C++. It supports parallel computing as well as GPU acceleration via Vulkan.")
+ (license license:bsd-3)))
+
(define-public onnx
(package
(name "onnx")
--
2.38.1
next prev parent reply other threads:[~2022-11-26 12:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-26 11:47 [bug#59607] [PATCH 0/8] Upscale your anime pictures, now with 99% less malware Liliana Marie Prikler
2022-11-19 23:14 ` Liliana Marie Prikler [this message]
2022-11-20 1:16 ` [bug#59607] [PATCH 2/8] gnu: Add real-esrgan-ncnn Liliana Marie Prikler
2022-11-20 9:10 ` [bug#59607] [PATCH 3/8] gnu: Add python-addict Liliana Marie Prikler
2022-11-20 16:25 ` [bug#59607] [PATCH 4/8] gnu: Add python-basicsr Liliana Marie Prikler
2022-11-22 20:55 ` [bug#59607] [PATCH 8/8] gnu: Add python-real-esrgan Liliana Marie Prikler
2022-11-25 20:37 ` [bug#59607] [PATCH 5/8] gnu: Add python-filterpy Liliana Marie Prikler
2022-11-25 22:31 ` [bug#59607] [PATCH 6/8] gnu: Add python-facexlib Liliana Marie Prikler
2022-11-26 10:46 ` [bug#59607] [PATCH 7/8] gnu: Add python-gfpgan Liliana Marie Prikler
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=a9149be6281538a384cd71d3de658246b502f177.camel@gmail.com \
--to=liliana.prikler@gmail.com \
--cc=59607@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.