;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2023 B. Wilson ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (bmw packages arrayfire) #:use-module (gnu packages algebra) #:use-module (gnu packages boost) #:use-module (gnu packages documentation) #:use-module (gnu packages image) #:use-module (gnu packages llvm) #:use-module (gnu packages logging) #:use-module (gnu packages maths) #:use-module (gnu packages pkg-config) #:use-module (gnu packages pretty-print) #:use-module (guix build-system cmake) #:use-module (guix packages) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:)) (define arrayfire-glad (let ((commit "ef8c5508e72456b714820c98e034d9a55b970650") (revision "1")) (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")) (file-name (git-file-name name version)))) (build-system cmake-build-system) (arguments (list #:tests? #f)) (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 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)) (recursive? #t))) (sha256 (base32 "1fvd0jvg49inhqx0mcqrfsfnqvc3n0pgnym5gina5svgh293n68a")) (file-name (git-file-name name version)))) (build-system cmake-build-system) (native-inputs (list doxygen pkg-config)) (inputs (list boost fftw fmt freeimage lapack libomp openblas spdlog)) (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)))