-
Compiling the program
```
entry main [n] [d] (as: [n][d]f32) : [3]f32 =
let bs = replicate n 0
let f i = f32.sum as[i] + 1 + bs[i]
in tabulate 3 f
```
with backend `opencl` results in the…
-
Running
```
echo 'def main (x: i32): i32 = x + 1' > test.futhark
futhark c test.futhark
./test
```
yields this exact output:
```
No entry point 'main'. Select another with --entry-point. Opt…
-
I tested this bug on `0.24.3` and `e82e4c2` (latest commit). I'm sorry it's more complex/weird than usual, everytime I try to simplify it more, the issue goes away:
```futhark
def consume (a: *[]i64…
-
Compiling the following program
```
let f [n] [m] [l] (xs: [n]f32) (ys: [m]f32) (zs: *[l]f32) : [n][m]f32 =
map (\x ->
map (\y -> f32.sum (map (*y) (map (*x) zs)))
ys)
xs
…
-
My colleague and I just getting started on using futhark (and we really like it!), but we've found a compiler bug that I want to report. I looked through the other issues with the bug tag and didn't s…
-
Hi, I need a program that takes two integers and gives back the first one, like so:
```futhark
entry main: i32 -> i32 -> i32 =
((true, (.0)), (false, (.1)))
|> (\p -> if p.0.0 then p.0 else …
-
This is just a quick question, but does Mudlet handle LFCR and CRLF as if they're equivalent given the history of flipping them away from the normal expected order started by Diku, or will there be so…
-
`futhark bench` re-initialises consumed entry point arguments (as it should), but for some reason there can be significant performance impact. NW is affected. We need to figure out what is going on,…
athas updated
2 years ago
-
```futhark
-- ==
-- random input { [10]i32 }
-- auto output
def main [n] (input: *[n]i32) : *[n]i32 =
let bp1 = assert (128 < 128) (1)
in input
```
```console
$ futhark test --backend…
-
The following code used to be fusable in the sequential (CPU) backend:
```futhark
let main [n] (i: i64) (ns: [n]i32) (mss: [n][n]i32): [n][n]i32 =
let t1 = map (map (+ 1)) mss
let k = 1
…