Closed melsman closed 8 years ago
What pretty code. I will take a look at it this evening.
I get a better error message:
Assertion False at life.fut:237:410-237:410 failed.
It is interesting that this means the Futhark compiler can determine at run-time that the assertion fails. It comes from a reshape
.
This is the reshape I think:
reshape((if ((-10) <= 0) then (-(-10)) else (-10), size(1,t_v1)),take1_bool(((-10) * (size(1, t_v1) * 1)), reshape(((size(0, t_v1) * (size(1, t_v1) * 1))),t_v1)))
Seems to be an error in the definition of takeBody
when left-padding. Fixing it now.
Is life.apl supposed to simply produce 0?
Tail seems to give the same result, so closing this one.
I'm trying to get the game of life (written in APL) running with Futhark. Here is the APL code:
The generated Futhark program is quite big - uggh - it is listed below. It will compile ok, but it wont run:
Any ideas?
The generated
main
function: