From patchwork Sat Aug 26 18:50:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 53232 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id AC90727BBEA; Sat, 26 Aug 2023 19:51:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 089A427BBE2 for ; Sat, 26 Aug 2023 19:51:10 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZyN8-0002Ro-Ub; Sat, 26 Aug 2023 14:50:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZyN6-0002Rf-Jg for guix-patches@gnu.org; Sat, 26 Aug 2023 14:50:57 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZyN6-0006OK-BN for guix-patches@gnu.org; Sat, 26 Aug 2023 14:50:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZyNB-0007S8-KJ for guix-patches@gnu.org; Sat, 26 Aug 2023 14:51:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65553] [PATCH 1/6] gnu: Add arrayfire-glad. References: In-Reply-To: Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Aug 2023 18:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65553 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65553@debbugs.gnu.org Received: via spool by 65553-submit@debbugs.gnu.org id=B65553.169307585128627 (code B ref 65553); Sat, 26 Aug 2023 18:51:01 +0000 Received: (at 65553) by debbugs.gnu.org; 26 Aug 2023 18:50:51 +0000 Received: from localhost ([127.0.0.1]:43403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZyN0-0007Rd-6Y for submit@debbugs.gnu.org; Sat, 26 Aug 2023 14:50:50 -0400 Received: from layka.disroot.org ([178.21.23.139]:53016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZyMy-0007RV-CH for 65553@debbugs.gnu.org; Sat, 26 Aug 2023 14:50:49 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 6144541312 for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:50:42 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bvi44GwjjpQW for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:50:40 +0200 (CEST) Message-ID: <3e855e76-45ce-bf7d-9ba5-bbe6a7e2072a@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1693075840; bh=ug08FLpnZrYGWJdBTifS2kGkXd4vgR1+PfMj1vJVBQQ=; h=Date:To:From:Subject; b=SrgemXZRgXTsf8jiM+ztX0Mo+tMf5jqQTmSGQGiOzrsErkyEyOS4TaoZqMo0iCQF/ T01as1RrRdBWE25UzQGKH8HgeL7HrlIp5XIK/ThtLkG9EOFws9nVbPpA7NeCEeDMCU uVfvFjIYTcfOLluHo1fKLEDq8hzo1PZtkZOdsSVu/UT0Uyk43isycwi6b+wNbqiJs/ zxXOLSQKnFsV1vx62qg0Vd1LN4Ao4+JRBM29i6r/jRRqKqgNwR0WPGNjdYgjWcccZH JU/QMid19QrPC/U1fwEqXBbrNM9tirVOhK1O+l8WUT066XGHg7Smhmrj9rH1Y14i9Z naH7tociQjxjg== Date: Sun, 27 Aug 2023 02:50:37 +0800 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 668b7978a7dd2e6daece5209621601575eaad900 Mon Sep 17 00:00:00 2001 Message-ID: <668b7978a7dd2e6daece5209621601575eaad900.1693075221.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Sun, 27 Aug 2023 01:59:48 +0800 Subject: [PATCH 1/6] gnu: Add arrayfire-glad. * gnu/packages/patches/arrayfire-glad-add-packaging-support.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it here. * gnu/packages/gl.scm (arrayfire-glad): New variable. --- gnu/local.mk | 1 + gnu/packages/gl.scm | 42 +++++ ...arrayfire-glad-add-packaging-support.patch | 145 ++++++++++++++++++ 3 files changed, 188 insertions(+) create mode 100644 gnu/packages/patches/arrayfire-glad-add-packaging-support.patch diff --git a/gnu/local.mk b/gnu/local.mk index adda02d410..3c1f7665ff 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -902,6 +902,7 @@ dist_patch_DATA = \ %D%/packages/patches/akonadi-not-relocatable.patch \ %D%/packages/patches/akonadi-timestamps.patch \ %D%/packages/patches/allegro-mesa-18.2.5-and-later.patch \ + %D%/packages/patches/arrayfire-glad-add-packaging-support.patch \ %D%/packages/patches/ibus-anthy-fix-tests.patch \ %D%/packages/patches/ibus-table-paths.patch \ %D%/packages/patches/anki-mpv-args.patch \ diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index b53b42a9ba..7476aba06f 100644 --- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm @@ -108,6 +108,48 @@ (define-public glu as ASCII text.") (license (license:x11-style "http://directory.fsf.org/wiki/License:SGIFreeBv2")))) +(define-public arrayfire-glad + (let ((commit "ef8c5508e72456b714820c98e034d9a55b970650") + (revision "0")) + (package + (name "arrayfire-glad") + (version (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/arrayfire/glad.git") + (commit commit))) + (sha256 + (base32 "0yln2mrymhb6ni6gb1vc0vrzbrkzmsxk7wyvbgqlv16bnmrmxmdv")) + (patches (search-patches "arrayfire-glad-add-packaging-support.patch")) + (modules '((guix build utils))) + (snippet + #~(begin + (substitute* "CMakeLists.txt" + (("OBJECT") "SHARED") + (("af_glad_obj_lib") "glad") + (("target_include_directories.*)\n" all) + (string-append all "\n\n" + "configure_file(glad.pc.in glad.pc @ONLY)\n" + "install(DIRECTORY include/\n" + "DESTINATION include/)\n" + "\n\n" + "install(TARGETS glad\n" + "DESTINATION lib/)\n" + "install(FILES ${CMAKE_CURRENT_BINARY_DIR}/glad.pc\n" + "DESTINATION lib/pkgconfig/)\n" + "install(FILES gladConfig.cmake\n" + "DESTINATION lib/cmake/glad/)\n"))))) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + (list #:tests? #f)) ; no tests + (home-page "https://github.com/arrayfire/glad") + (synopsis "OpenGL(3.3) Loader Library") + (description "OpenGL(3.3) Loader Library, a dependency of ArrayFire.") + (license license:bsd-3)))) + (define-public freeglut (package (name "freeglut") diff --git a/gnu/packages/patches/arrayfire-glad-add-packaging-support.patch b/gnu/packages/patches/arrayfire-glad-add-packaging-support.patch new file mode 100644 index 0000000000..a7591eee7b --- /dev/null +++ b/gnu/packages/patches/arrayfire-glad-add-packaging-support.patch @@ -0,0 +1,145 @@ +From ceaa23fd1834ad56fe5f74d544b650be9a55360b Mon Sep 17 00:00:00 2001 +From: AwesomeAdam54321 +Date: Sat, 26 Aug 2023 16:38:13 +0800 +Subject: [PATCH] glad: Add package configuration files. + +* glad.pc.in: Add pkg-config file. +* gladConfig.cmake: Add CMake package file for detection by external packages. +--- + glad.pc.in | 11 +++++ + gladConfig.cmake | 104 +++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 115 insertions(+) + create mode 100644 glad.pc + create mode 100644 gladConfig.cmake + +diff --git a/glad.pc.in b/glad.pc.in +new file mode 100644 +index 0000000..5c29fcd +--- /dev/null ++++ b/glad.pc.in +@@ -0,0 +1,11 @@ ++prefix=@CMAKE_INSTALL_PREFIX@ # this defines a variable ++exec_prefix=${prefix} # defining another variable with a substitution ++libdir=${exec_prefix}/lib ++includedir=${prefix}/include ++ ++Name: glad ++Description: OpenGL(3.3) Loader Library ++Version: 0 ++URL: https://github.com/arrayfire/glad ++Libs: -L${libdir} -lglad ++Cflags: -I${includedir}/glad +\ No newline at end of file +diff --git a/gladConfig.cmake b/gladConfig.cmake +new file mode 100644 +index 0000000..1213d3e +--- /dev/null ++++ b/gladConfig.cmake +@@ -0,0 +1,104 @@ ++# Finds the glad libraries ++# ++# Sets the following variables: ++# glad_FOUND ++# glad_INCLUDE_DIR ++# glad_DYNAMIC_LIBRARY ++# glad_STATIC_LIBRARY ++# ++# Usage: ++# find_package(glad) ++# if (glad_FOUND) ++# target_link_libraries(mylib PRIVATE glad::glad) ++# endif (glad_FOUND) ++# ++# OR if you want to link against the static library: ++# ++# find_package(glad) ++# if (glad_FOUND) ++# target_link_libraries(mylib PRIVATE glad::glad_STATIC) ++# endif (glad_FOUND) ++# ++# NOTE: You do not need to include the glad include directories since they ++# will be included as part of the target_link_libraries command ++ ++set(PX ${CMAKE_STATIC_LIBRARY_PREFIX}) ++set(SX ${CMAKE_STATIC_LIBRARY_SUFFIX}) ++ ++# use pkg-config to get the directories and then use these values ++# in the find_path() and find_library() calls ++if (NOT WIN32) ++ find_package(PkgConfig) ++ pkg_check_modules(gladPkg REQUIRED glad) ++endif (NOT WIN32) ++ ++find_path(glad_INCLUDE_DIR ++ NAMES glad.h ++ PATHS ++ /usr/include ++ /usr/local/include ++ /sw/include ++ /opt/local/include ++ HINTS ++ ${gladPkg_INCLUDE_DIRS} # Generated by pkg-config ++ ) ++ ++find_library(glad_DYNAMIC_LIBRARY ++ NAMES glad fontconfig ${gladPkg_LIBRARY} ++ PATHS ++ /usr/local ++ /usr/X11 ++ /usr ++ /sw ++ /opt/local ++ /usr/lib/x86_64-linux-gnu ++ HINTS ++ ${gladPkg_LIBRARY_DIRS} # Generated by pkg-config ++ PATH_SUFFIXES ++ lib64 ++ lib ++ ) ++ ++find_library(glad_STATIC_LIBRARY ++ NAMES ${PX}fontconfig${SX} ${PX}glad${SX} ${PX}${gladPkg_LIBRARY}${SX} ++ PATHS ++ /usr/local ++ /usr/X11 ++ /usr ++ /sw ++ /opt/local ++ /usr/lib/x86_64-linux-gnu ++ HINTS ++ ${gladPkg_LIBRARY_DIRS} # Generated by pkg-config ++ PATH_SUFFIXES ++ lib64 ++ lib ++ ) ++ ++mark_as_advanced( ++ glad_INCLUDE_DIR ++ glad_DYNAMIC_LIBRARY ++ glad_STATIC_LIBRARY ++ ) ++ ++include(FindPackageHandleStandardArgs) ++ ++find_package_handle_standard_args(glad ++ REQUIRED_VARS glad_DYNAMIC_LIBRARY glad_INCLUDE_DIR ++ ) ++ ++if (glad_FOUND AND NOT TARGET glad::glad) ++ add_library(glad::glad UNKNOWN IMPORTED) ++ set_target_properties(glad::glad PROPERTIES ++ IMPORTED_LINK_INTERFACE_LANGUAGE "C" ++ IMPORTED_LOCATION ${glad_DYNAMIC_LIBRARY} ++ INTERFACE_INCLUDE_DIRECTORIES ${glad_INCLUDE_DIR}) ++ ++ if (glad_STATIC_LIBRARY) ++ add_library(glad::glad_STATIC UNKNOWN IMPORTED) ++ set_target_properties(glad::glad_STATIC PROPERTIES ++ IMPORTED_LINK_INTERFACE_LANGUAGE "C" ++ IMPORTED_LOCATION "${glad_STATIC_LIBRARY}" ++ INTERFACE_INCLUDE_DIRECTORIES "${glad_INCLUDE_DIR}") ++ endif (glad_STATIC_LIBRARY) ++endif () +-- +2.41.0 + From patchwork Sat Aug 26 18:51:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 53233 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B4FA327BBE9; Sat, 26 Aug 2023 19:52:18 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 117F927BBE2 for ; Sat, 26 Aug 2023 19:52:17 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZyOA-0002Yo-46; Sat, 26 Aug 2023 14:52:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZyO7-0002YN-0D for guix-patches@gnu.org; Sat, 26 Aug 2023 14:51:59 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZyO5-0006UT-2f for guix-patches@gnu.org; Sat, 26 Aug 2023 14:51:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZyOA-0007Tw-1n for guix-patches@gnu.org; Sat, 26 Aug 2023 14:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65553] [PATCH 2/6] gnu: Add span-lite. References: In-Reply-To: Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Aug 2023 18:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65553 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65553@debbugs.gnu.org Received: via spool by 65553-submit@debbugs.gnu.org id=B65553.169307589828726 (code B ref 65553); Sat, 26 Aug 2023 18:52:02 +0000 Received: (at 65553) by debbugs.gnu.org; 26 Aug 2023 18:51:38 +0000 Received: from localhost ([127.0.0.1]:43407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZyNm-0007TF-0j for submit@debbugs.gnu.org; Sat, 26 Aug 2023 14:51:38 -0400 Received: from layka.disroot.org ([178.21.23.139]:56870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZyNj-0007T7-Uc for 65553@debbugs.gnu.org; Sat, 26 Aug 2023 14:51:36 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 0DBFD4134B for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:51:30 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k8ga93U10og2 for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:51:28 +0200 (CEST) Message-ID: <3fe1dc59-aa8a-cbb4-fa37-7e7c33f1f599@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1693075888; bh=gbhvCXArkN6Y08/4yAbuGp9G1qHzMaqdXw/HaY5omnc=; h=Date:To:From:Subject; b=L2MJFKfavCcYqMY2G1Tt7HvipoIL9tcl9U9SIWfwqmM22koLeB49bjIX0ntLXC19U /8Fw8cC0cYzgdvrTH9L+6Md18WOF6AwRQKDnVHygkDHFtB9GnP4mDEOIxVBOA1Jz9R ZDJfkrPF/V5O6zZbKCYzKkq17ylFBZy4RMkZ0bP7y9Ft3/TYAXxbjEwhijZ1dVxI0z tWTC0z3MVXqLhKBR6F/q2h0ewl01+r8+0TDqZvb9MEggDDlUdG2J32GB+rbAbl0571 QMgj2nK5IO8wUFPfWkIjfJSzn1M13ySqNTuBiR43X5IJ5EGSk+osYxCrAuEMHKT914 76dTAOYjW06pw== Date: Sun, 27 Aug 2023 02:51:25 +0800 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From e865289a2ee999420d353b28d584dbe294ac19b1 Mon Sep 17 00:00:00 2001 Message-ID: In-Reply-To: References: From: AwesomeAdam54321 Date: Sun, 27 Aug 2023 02:05:30 +0800 Subject: [PATCH 2/6] gnu: Add span-lite. * gnu/packages/cpp.scm (span-lite): New variable. --- gnu/packages/cpp.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 41f24b0998..6ab3710000 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -759,6 +759,28 @@ (define-public concurrentqueue concurrent queue for C++11.") (license license:bsd-2))) +(define-public span-lite + (package + (name "span-lite") + (version "0.10.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/martinmoene/span-lite") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xs7gq84d05h607076c2fvxzx8yb4zy3gmh432379af1yb435yjr")))) + (build-system cmake-build-system) + (synopsis "C++20-like span header for C++98 and later") + (description + "Span lite is a single-file header-only library to provide a bounds-safe +view for sequences of objects. + The library provides a C++20-like span for use with C++98 and later.") + (home-page "https://github.com/martinmoene/span-lite") + (license license:boost1.0))) + (define-public spscqueue (package (name "spscqueue") From patchwork Sat Aug 26 18:52:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 53234 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 842D627BBE9; Sat, 26 Aug 2023 19:53:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5140F27BBE2 for ; Sat, 26 Aug 2023 19:53:15 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZyPA-0002k1-BS; Sat, 26 Aug 2023 14:53:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZyP5-0002iV-2y for guix-patches@gnu.org; Sat, 26 Aug 2023 14:53:00 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZyP3-0006ZI-Bz for guix-patches@gnu.org; Sat, 26 Aug 2023 14:52:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZyP8-0007Ve-KS for guix-patches@gnu.org; Sat, 26 Aug 2023 14:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65553] [PATCH 3/6] gnu: Add arrayfire-threads. References: In-Reply-To: Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Aug 2023 18:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65553 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65553@debbugs.gnu.org Received: via spool by 65553-submit@debbugs.gnu.org id=B65553.169307597228844 (code B ref 65553); Sat, 26 Aug 2023 18:53:02 +0000 Received: (at 65553) by debbugs.gnu.org; 26 Aug 2023 18:52:52 +0000 Received: from localhost ([127.0.0.1]:43411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZyOy-0007V9-EH for submit@debbugs.gnu.org; Sat, 26 Aug 2023 14:52:52 -0400 Received: from layka.disroot.org ([178.21.23.139]:36050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZyOw-0007V1-Bd for 65553@debbugs.gnu.org; Sat, 26 Aug 2023 14:52:51 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 72536411EB for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:52:44 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D97ZcS8ec_nr for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:52:43 +0200 (CEST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1693075963; bh=QO1PSI6iYMVqMMR4YV5zLpI0Qdg0/j4S9b4q4etO4dU=; h=Date:To:From:Subject; b=CD3ckWbBmxkYRHUrOWLjC69p62AsjaaBNOfrcIy+uUXOq4btmIZgHjYXFZbnl1Lky n71EvciN1q/Z3GxweS4ZtKA2IGxBktXkVFLePTOzgDY4Fqk2iFE647C8QnxbmOtfmk Zo+sX2tKxbA3ypOTfgn0vXIa3+VJfAgsAZ3FEH3Epw8eY6qHphe8E73rsgEwUpXJLs 3cOHpmY3av1NACK7UDJcdW0FTGSlIEoqUSYcV2ax/zsxNqea265T1QcwhYIzGe3Ilw hG+ILjdG0cfYK1EtJxAZ2+HYpwv3j40VoPsjo/oqTWcv1CVeJkZCw4AwfLCV9NCEHn Fy2y1hW+T/P/A== Date: Sun, 27 Aug 2023 02:52:39 +0800 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 8eb098f8c795f0bfdc036fc53c94de6f7c29eeb1 Mon Sep 17 00:00:00 2001 Message-ID: <8eb098f8c795f0bfdc036fc53c94de6f7c29eeb1.1693075221.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Sun, 27 Aug 2023 02:06:31 +0800 Subject: [PATCH 3/6] gnu: Add arrayfire-threads. * gnu/packages/cpp.scm (arrayfire-threads): New variable. --- gnu/packages/cpp.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 6ab3710000..64147167c1 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -1554,6 +1554,46 @@ (define-public lager event loops it also provides lenses and cursors.") (license license:expat)))) +(define-public arrayfire-threads + (let ((commit "4d4a4f0384d1ac2f25b2c4fc1d57b9e25f4d6818") + (revision "0")) + (package + (name "arrayfire-threads") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/arrayfire/threads") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zipmh6rlk9nzczqp0bj9jjbqvjyk1rxnxz5rqpx83h91bvi7axa")) + (modules '((guix build utils))) + (snippet + #~(begin + (substitute* "Makefile" + (("g\\+\\+-4.9") "g++") + (("-o test" all) + (string-append all "\n\n" + "install:\n\t" + "mkdir -p $(DESTDIR)$(PREFIX)/include\n\t" + "cp -r include $(DESTDIR)$(PREFIX)"))))))) + (build-system gnu-build-system) + (arguments + (list #:make-flags + #~(list (string-append "DESTDIR=" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) ; no configure + (delete 'build) ; building the headers fail to compile + (delete 'check)))) ; test.cpp is compiled in the `all` target + (synopsis "Threads headers for ArrayFire") + (description + "This package provides threads headers for ArrayFire.") + (home-page "https://github.com/arrayfire/threads") + (license license:bsd-3)))) + (define-public atomic-queue (package (name "atomic-queue") From patchwork Sat Aug 26 18:53:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 53235 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 261AB27BBEA; Sat, 26 Aug 2023 19:54:07 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C73B027BBE2 for ; Sat, 26 Aug 2023 19:54:05 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZyQ3-0003Tn-FA; Sat, 26 Aug 2023 14:53:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZyQ0-0003SQ-W4 for guix-patches@gnu.org; Sat, 26 Aug 2023 14:53:57 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZyQ0-0006h3-O9 for guix-patches@gnu.org; Sat, 26 Aug 2023 14:53:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZyQ6-0007Xb-1X for guix-patches@gnu.org; Sat, 26 Aug 2023 14:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65553] [PATCH 4/6] gnu: Add arrayfire-forge. References: In-Reply-To: Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Aug 2023 18:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65553 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65553@debbugs.gnu.org Received: via spool by 65553-submit@debbugs.gnu.org id=B65553.169307603928977 (code B ref 65553); Sat, 26 Aug 2023 18:54:02 +0000 Received: (at 65553) by debbugs.gnu.org; 26 Aug 2023 18:53:59 +0000 Received: from localhost ([127.0.0.1]:43415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZyQ2-0007XJ-R3 for submit@debbugs.gnu.org; Sat, 26 Aug 2023 14:53:59 -0400 Received: from layka.disroot.org ([178.21.23.139]:59632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZyQ1-0007XB-Hr for 65553@debbugs.gnu.org; Sat, 26 Aug 2023 14:53:58 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id B1DA541064 for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:53:51 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bpThiw79_V7v for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:53:50 +0200 (CEST) Message-ID: <61085ea2-d601-0761-1735-82ac48625592@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1693076030; bh=GHyg4Ufyi3k0o74Gy6C+0HczZSYiRynFMLNMnAv+ZPo=; h=Date:To:From:Subject; b=U/0TxTp8RPlpYfap0mcFiSIJCaMQLTREguppbQJNB67Q4CfAXrww8X4vqqCJd1OiG DHlqcGc42fIconCQJ1Be01Nn47CcqrUdCl2i++m+KvLxwOdNw3MJq2Ma8bUq4lrSRv z3Dvaf7EZYVfUMH+3WF6NoqpTgG7N4L3sPujMEAcJMPsgv8iW/luNzcCFg0AmSHMqc JgBTL3gBgIKITVePBLa79QT0c6Ox57ispmUXldwUZ6qRy/XoO9X/tc3bwWmjKCznTS C8PNgRJx/uEzkT062E/EKidhA5xrBXT/WSzs7Fphy5jcPMvpiWQT3V17e+S6ymMMyf cPFISpZIhz8TA== Date: Sun, 27 Aug 2023 02:53:47 +0800 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 57c398fa56f343ef3767f3be33a47c33a510b758 Mon Sep 17 00:00:00 2001 Message-ID: <57c398fa56f343ef3767f3be33a47c33a510b758.1693075221.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Sun, 27 Aug 2023 02:09:00 +0800 Subject: [PATCH 4/6] gnu: Add arrayfire-forge. * gnu/packages/statistics.scm (arrayfire-forge): New variable. --- gnu/packages/statistics.scm | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 5abc62d760..7681af717b 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -43,6 +43,7 @@ (define-module (gnu packages statistics) #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system ant) + #:use-module (guix build-system cmake) #:use-module (guix build-system emacs) #:use-module (guix build-system gnu) #:use-module (guix build-system r) @@ -54,16 +55,19 @@ (define-module (gnu packages statistics) #:use-module (gnu packages algebra) #:use-module (gnu packages autotools) #:use-module (gnu packages bash) + #:use-module (gnu packages boost) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages cran) #:use-module (gnu packages curl) + #:use-module (gnu packages documentation) #:use-module (gnu packages emacs) #:use-module (gnu packages emacs-xyz) #:use-module (gnu packages fontutils) #:use-module (gnu packages gcc) #:use-module (gnu packages gtk) #:use-module (gnu packages gettext) + #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages icu4c) @@ -77,6 +81,7 @@ (define-module (gnu packages statistics) #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) #:use-module (gnu packages ocaml) + #:use-module (gnu packages opencl) #:use-module (gnu packages pcre) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) @@ -6821,6 +6826,52 @@ (define-public emacs-poly-r files, including Rmarkdown files.") (license license:gpl3+))) +(define-public arrayfire-forge + (package + (name "arrayfire-forge") + (version "1.0.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/arrayfire/forge.git") + (commit (string-append "v" version)))) + (sha256 + (base32 "19bqqq56bvpi9dyn7i3p86ccs9v45zy5a74njacjn7l0rb0l09lm")) + (modules '((guix build utils))) + (snippet + #~(begin + (substitute* "CMakeLists.txt" + (("include\\(ForgeConfigureDepsVars\\)") "")) + (substitute* "examples/CMakeLists.txt" + (("include.build_cl2hpp.") "")))) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (native-inputs + (list doxygen + pkg-config + python-breathe + python-sphinx + python-recommonmark)) + (inputs + (list arrayfire-glad + boost + fontconfig + freeimage + freetype + glfw + glm + opencl-clhpp)) + (arguments + (list #:tests? #f)) ; no tests + (home-page "https://arrayfire.com/") + (synopsis "OpenGL visualiser") + (description "Forge is an OpenGL interop library that can be used +with ArrayFire or any other application using the OpenCL compute backend. + The goal of Forge is to provide OpenGL visualizations +for C/C++ applications that use OpenCL.") + (license license:bsd-3))) + (define-public readstat (package (name "readstat") From patchwork Sat Aug 26 18:55:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 53236 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1DC3627BBEA; Sat, 26 Aug 2023 19:56:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 458B827BBE2 for ; Sat, 26 Aug 2023 19:56:12 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZyRz-0003or-Qv; Sat, 26 Aug 2023 14:55:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZyRy-0003oT-3I for guix-patches@gnu.org; Sat, 26 Aug 2023 14:55:58 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZyRx-00075h-RV for guix-patches@gnu.org; Sat, 26 Aug 2023 14:55:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZyS3-0007b8-2R for guix-patches@gnu.org; Sat, 26 Aug 2023 14:56:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65553] [PATCH 5/6] gnu: Add arrayfire-docs. References: In-Reply-To: Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Aug 2023 18:56:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65553 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65553@debbugs.gnu.org Received: via spool by 65553-submit@debbugs.gnu.org id=B65553.169307611529126 (code B ref 65553); Sat, 26 Aug 2023 18:56:03 +0000 Received: (at 65553) by debbugs.gnu.org; 26 Aug 2023 18:55:15 +0000 Received: from localhost ([127.0.0.1]:43419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZyRH-0007Zi-BM for submit@debbugs.gnu.org; Sat, 26 Aug 2023 14:55:15 -0400 Received: from layka.disroot.org ([178.21.23.139]:44050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZyRG-0007Za-11 for 65553@debbugs.gnu.org; Sat, 26 Aug 2023 14:55:14 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 38FC940DCA for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:55:08 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gB1Wrx5IOkdk for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:55:07 +0200 (CEST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1693076107; bh=pNajGucaXygFEnUfdFT0vcjklBOz0tiYRv438JIQf4s=; h=Date:To:From:Subject; b=N8VxAlBF+ATeE81V9d9pSy57a8R6avgB3pe3LCt7WHvLPwXX7VOJE8fqB3cOp0CVW YPyn3BGnm3yR+DhD0XAnJgy3NlFOenOloAPf42IuiPXm0RymbLiaBxYpySZanUgyny 32XKjoSPHD6J+ZK64MlFKrbGwh4IZ9K//HYIuqdSL4RKvOsvGOqWxv0nSrjIM/vBGp mWWEDATbf3WoVMmP469WWhBh0Sz9UsfQGbEpiT9wPtbbl2DIh1guYIWo2cqH7zGKyr DQM1hPs/zeBI6LW/uSDiQEJyKWzs7lTr4BCCuap9w5eJNn2TcIL7W8c1RyIZ5lDfyx Y+0VS9Q8gJ0MQ== Date: Sun, 27 Aug 2023 02:55:03 +0800 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 73a6d3371cf1020a2d270b0c67187711d09be9c4 Mon Sep 17 00:00:00 2001 Message-ID: <73a6d3371cf1020a2d270b0c67187711d09be9c4.1693075221.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Sun, 27 Aug 2023 02:10:07 +0800 Subject: [PATCH 5/6] gnu: Add arrayfire-docs. * gnu/packages/machine-learning.scm (arrayfire-docs): New variable. --- gnu/packages/machine-learning.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index c32180615b..6251ea9206 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -45,6 +45,7 @@ (define-module (gnu packages machine-learning) #:use-module (guix download) #:use-module (guix svn-download) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system ocaml) #:use-module (guix build-system pyproject) @@ -3101,6 +3102,32 @@ (define-public tensorflow-lite devices.") (license license:asl2.0))) +(define-public arrayfire-docs + (let ((commit "cd08d749611b324012555ad6f23fd76c5465bd6c") + (revision "0")) + (package + (name "arrayfire-docs") + (version (package-version arrayfire)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/arrayfire/assets") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0s1il38y65z19mcrhvqvkm5ljv6v55ilw1bxwcsmhgzmzjla32xz")))) + (build-system copy-build-system) + (arguments + (list + #:install-plan + #~'(("./" "./")))) + (synopsis "ArrayFire documentation") + (description + "This package contains the files used for ArrayFire's documentation.") + (home-page "https://arrayfire.com/") + (license license:cc0)))) + (define-public dmlc-core (package (name "dmlc-core") From patchwork Sat Aug 26 18:56:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 53237 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0137227BBE9; Sat, 26 Aug 2023 19:57:10 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A0C1427BBE2 for ; Sat, 26 Aug 2023 19:57:09 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZySy-00044O-PX; Sat, 26 Aug 2023 14:57:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZySw-000449-3A for guix-patches@gnu.org; Sat, 26 Aug 2023 14:56:58 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZySv-0007Ie-8Y for guix-patches@gnu.org; Sat, 26 Aug 2023 14:56:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZyT0-0007cx-Gf for guix-patches@gnu.org; Sat, 26 Aug 2023 14:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65553] [PATCH 6/6] gnu: Add arrayfire. References: In-Reply-To: Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Aug 2023 18:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65553 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65553@debbugs.gnu.org Received: via spool by 65553-submit@debbugs.gnu.org id=B65553.169307620829297 (code B ref 65553); Sat, 26 Aug 2023 18:57:02 +0000 Received: (at 65553) by debbugs.gnu.org; 26 Aug 2023 18:56:48 +0000 Received: from localhost ([127.0.0.1]:43427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZySl-0007cR-3U for submit@debbugs.gnu.org; Sat, 26 Aug 2023 14:56:47 -0400 Received: from layka.disroot.org ([178.21.23.139]:44688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZySi-0007cJ-Ir for 65553@debbugs.gnu.org; Sat, 26 Aug 2023 14:56:45 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id BF04140BE2 for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:56:38 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zgi3bwdXQLF4 for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:56:37 +0200 (CEST) Message-ID: <7a3dab74-0e1d-e2a5-ef82-89ca5d4df952@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1693076197; bh=oA90SP5QYGZQQ6zYXrDc6bB+cI7sxROHKGR4ibAjaEU=; h=Date:To:From:Subject; b=RYHVxZVgO7BlZsjCOVIfXVUr7VCTu5wVkZ2mwGgeDf4B46lUHEXIRqcHBxAKbgFrE U4C+DaLBQzs+31hmlvrV0k2Nn2Yeh2TnwqC1wbwN4a9iHOw8o16vLlNPnvrB/+SmGQ kk/ldVnp9hDtsf9iXgN5HGJZpe8dsiKIDAU7gvlE3+75+x3jmVxV4kLsW2Zjfloezo GNDhknm90AmSisBRgtuiHloOqLPya+WOSi7h7wFQE5MWmdYCnt4h9C4rJtb0Fvp0e3 PMldhtfgPzjTZjLesrzHBFOp8QJL4ViGlUZBJ0XtFcH43CVU5QFazHJ47f52KclUof 4VBx4lpMEkwPw== Date: Sun, 27 Aug 2023 02:56:34 +0800 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 0d1c25484158655344cbfbdc1e3e503be23654d1 Mon Sep 17 00:00:00 2001 Message-ID: <0d1c25484158655344cbfbdc1e3e503be23654d1.1693075221.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Sun, 27 Aug 2023 02:12:03 +0800 Subject: [PATCH 6/6] gnu: Add arrayfire. * gnu/packages/machine-learning.scm (arrayfire): New variable. --- gnu/packages/machine-learning.scm | 71 +++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 6251ea9206..e2ca22821b 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -69,6 +69,8 @@ (define-module (gnu packages machine-learning) #:use-module (gnu packages cran) #:use-module (gnu packages databases) #:use-module (gnu packages dejagnu) + #:use-module (gnu packages documentation) + #:use-module (gnu packages fontutils) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gcc) #:use-module (gnu packages gettext) @@ -85,6 +87,7 @@ (define-module (gnu packages machine-learning) #:use-module (gnu packages libffi) #:use-module (gnu packages linux) #:use-module (gnu packages llvm) + #:use-module (gnu packages logging) #:use-module (gnu packages maths) #:use-module (gnu packages mpi) #:use-module (gnu packages ninja) @@ -93,6 +96,7 @@ (define-module (gnu packages machine-learning) #:use-module (gnu packages parallel) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages pretty-print) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) @@ -3102,6 +3106,73 @@ (define-public tensorflow-lite devices.") (license license:asl2.0))) +(define-public arrayfire + (package + (name "arrayfire") + (version "3.8.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/arrayfire/arrayfire.git") + (commit (string-append "v" version)))) + (sha256 + (base32 "1fvd0jvg49inhqx0mcqrfsfnqvc3n0pgnym5gina5svgh293n68a")) + (modules '((guix build utils))) + (snippet + #~(begin + (substitute* "CMakeLists.txt" + (("add_subdirectory\\(\\$.*\\)") "") + (("NO_CMAKE_PACKAGE_REGISTRY") "") + (("include\\(AFconfigure_deps_vars\\)") + (string-append "macro(af_dep_check_and_populate dep_prefix)\n" + "endmacro()")) + (("....assets_prefix._SOURCE_DIR.") + "$ENV{ARRAYFIRE_DOCS_PREFIX}")) + (substitute* "test/CMakeLists.txt" + (("include\\(download_sparse_datasets\\)") "")) + (substitute* "CMakeModules/FindFFTW.cmake" + (("FFTWF_LIBRARY\\)") ")")) + (substitute* "src/backend/cpu/CMakeLists.txt" + (("....threads_prefix._.*hpp") "")))) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (native-inputs + (list arrayfire-docs + doxygen + googletest + pkg-config)) + (inputs + (list arrayfire-forge + arrayfire-glad + arrayfire-threads + boost + fftw + fmt + fontconfig + freeimage + glfw + lapack + libomp + openblas + span-lite + spdlog)) + (arguments + (list #:configure-flags + #~(list "-DCMAKE_EXE_LINKER_FLAGS=-Wl,--no-keep-memory") + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'set-envs + (lambda _ + (setenv "ARRAYFIRE_DOCS_PREFIX" + #$(this-package-native-input "arrayfire-docs"))))))) + (home-page "https://arrayfire.com/") + (synopsis "General purpose tensor library") + (description "ArrayFire is a general-purpose tensor library that simplifies +the process of software development for the parallel architectures found in +CPUs, GPUs, and other hardware acceleration devices.") + (license license:bsd-3))) + (define-public arrayfire-docs (let ((commit "cd08d749611b324012555ad6f23fd76c5465bd6c") (revision "0"))