me
/
guix
Archived
1
0
Fork 0

gnu: Add julia-adapt.

* gnu/packages/julia-xyz.scm (julia-adapt): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
nixo 2021-01-18 23:46:51 +01:00 committed by Ludovic Courtès
parent c0c21d77d9
commit 20767b9b69
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 22 additions and 0 deletions

View File

@ -22,6 +22,28 @@
#:use-module (guix git-download)
#:use-module (guix build-system julia))
(define-public julia-adapt
(package
(name "julia-adapt")
(version "3.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/JuliaGPU/Adapt.jl")
(commit (string-append "v" version))))
(file-name "Adapt")
(sha256
(base32 "1lks6k3a1gvwlplld47nh6xfy3nnlpc0vhkzg6zg0qn33qdmavrg"))))
(build-system julia-build-system)
(home-page "https://github.com/JuliaGPU/Adapt.jl")
(synopsis "Package providing the @code{adapt} function, similar to @code{convert}")
(description "This Julia package provides the @code{adapt(T, x)} function
acts like @code{convert(T, x)}, but without the restriction of returning a
@code{T}. This allows you to \"convert\" wrapper types like @code{Adjoint} to
be GPU compatible without throwing away the wrapper.")
(license license:expat)))
(define-public julia-compat
(package
(name "julia-compat")