diff options
author | nixo <nicolo@nixo.xyz> | 2021-01-18 23:46:51 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-01-30 15:36:57 +0100 |
commit | 20767b9b6914aa0b79ae8ad14f0d8d53057e019d (patch) | |
tree | 7a62ae467825398847790979b3c2edbfe132108b /gnu | |
parent | c0c21d77d9f0dec8ac7b49db4c4196e636728839 (diff) | |
download | guix-patches-20767b9b6914aa0b79ae8ad14f0d8d53057e019d.tar guix-patches-20767b9b6914aa0b79ae8ad14f0d8d53057e019d.tar.gz |
gnu: Add julia-adapt.
* gnu/packages/julia-xyz.scm (julia-adapt): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/julia-xyz.scm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index 9a615aba58..2e0efb0b5a 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -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") |