作者:饰间人爱642_370 | 来源:互联网 | 2023-09-23 14:24
Futhark 0.5.1 已发布。
Futhark 是一个小型全新的函数式编程语言,可编译为高性能的 GPU 代码。使用静态类型、并行数据以及纯函数数组语言。该语言对编译器提前进行重度的优化,通过 OpenCL 生成 GPU 代码。Futhark 并非为图形编程而设计,通过使用 GPU 来加速并行的数组计算,支持常规嵌套的数据并行化处理。
Futhark 使用 Haskell 语言开发。
该版本的主要变化是切换到新的版本方案,以后发布的版本号永远不会以.0
结束。这个版本是一个稳定和整合的版本。
具体更新如下:
Added
Entry points need no longer be syntactically first-order.
Added overloaded numeric literals (#532). This means type
suffixes are rarely required.
Binary and unary operators may now be bound in patterns by
enclosing them in parenthesis.
futhark-doc
now produces much nicer documentation. Markdown is
now supported in documentation comments.
/futlib/functional
now has operators >->
and <-<
for
function composition. <<|
are |>>
are deprecated.
/futlib/segmented
now has a segmented_reduce
.
Scans and reductions can now be horizontally fused.
futhark-bench
now supports multiple entry points, just like
futhark-test
.
".." is now supported in include
paths.
Removed
The reshape
construct has been removed. Use the
flatten
/unflatten
functions instead.
concat
and rotate
no longer support the @
notation. Use
map
nests instead.
Removed -I
/--library
. These never worked with
futhark-test
/futhark-bench
anyway.
Changed
When defining a module type, a module of the same name is no
longer defined (#538).
The default
keyword is no longer supported.
/futlib/merge_sort
and /futlib/radix_sort
now define
functions instead of modules.
Fixed
点此查看完整更新日志 https://github.com/diku-dk/futhark/releases/tag/v0.5.1
下载
【声明】文章转载自:开源中国社区 [http://www.oschina.net]
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 我们