diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2023-02-19 00:04:52 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-03-03 12:30:49 +0100 |
commit | 39f02b576095a51f3da49c2f6d78185d018b3457 (patch) | |
tree | c432ead6b5f2cb12e57ff170cec7c90f94622a5c /gnu/packages | |
parent | 549c227f3c5c0c791bbdc5d2ce24dfd1126eb2db (diff) |
gnu: Add julia-muladdmacro.
* gnu/packages/julia-xyz.scm (julia-muladdmacro): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/julia-xyz.scm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index beb8b4c85a..437dd4da3d 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -4223,6 +4223,33 @@ aims to provide easy-to-use tools for such tasks.") Julia, with type-driven, overloadable packing/unpacking functionality.") (license license:expat))) +(define-public julia-muladdmacro + (package + (name "julia-muladdmacro") + (version "0.2.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/SciML/MuladdMacro.jl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0pvmfw7f3igpwx0w8c8i40pls0wfm248b1i662wnlrkqiw56j0yq")))) + (build-system julia-build-system) + (home-page "https://github.com/SciML/MuladdMacro.jl") + (synopsis "Julia macro to convert expressions to use muladd calls and FMA operations") + (description + "This package provides the @code{@@muladd} macro. It automatically converts +expressions with multiplications and additions or subtractions to calls with +muladd which then fuse via FMA when it would increase the performance of the +code. The @code{@@muladd} macro can be placed on code blocks and it will automatically +find the appropriate expressions and nest muladd expressions when necessary. In +mixed expressions summands without multiplication will be grouped together and +evaluated first but otherwise the order of evaluation of multiplications and +additions is not changed.") + (license license:expat))) + (define-public julia-mutablearithmetics (package (name "julia-mutablearithmetics") |