AccelerateHS / AccelerateHS/accelerate-backend-kit

UnzipArrays doesn't handle arrays of Z

未關閉
#10 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Haskell
星號
16
分支
2
PR 合併指標
30 天內沒有已合併 PR

描述

I'm in the process of fixing tuple handling (hopefully once and for all), and I tripped across this which seems to be a problem with `UnzipArrays.`

Corresponds to test `p13g`.

What happens is that it drops the array entirely, leaving us with an empty list of program results:

``` Haskell
unzipETups, output was:
================================================================================

Prog {progBinds = [ProgBind tmp_0
(TArray 1 (TTuple []))
(SubBinds {subnames = [], arrsize = Just TrivConst 1},
(Nothing, KnownSize [1]))
(Right Generate (EConst (I 1))
(Lam1 (flatidx0, TInt) (ETuple []))),
ProgBind
(TTuple [])
(SubBinds {subnames = [], arrsize = Nothing},
(Nothing, UnknownSize))
(Left ETuple [])],
progResults = WithShapesUnzipped [(tmp_0, [])],
progType = TArray 1 (TTuple []),
uniqueCounter = 2,
typeEnv = [(tmp_0, TArray 1 (TTuple [])),(tmp_0_shape, TTuple [])]}

unzipArrays, output was:
================================================================================

Prog {progBinds = [ProgBind
(TArray 1 (TTuple []))
(OpInputs [],
(SubBinds {subnames = [], arrsize = Just TrivConst 1},
(Nothing, KnownSize [1])))
(Right Generate (EConst (I 1))
(Lam1 (flatidx0, TInt) (ETuple []))),
ProgBind
(TTuple [])
(OpInputs [],
(SubBinds {subnames = [], arrsize = Nothing},
(Nothing, UnknownSize)))
(Left ETuple [])],
progResults = WithShapesUnzipped [],
progType = TArray 1 (TTuple []),
uniqueCounter = 2,
typeEnv = [(tmp_0, TArray 1 (TTuple [])),(tmp_0_shape, TTuple [])]}
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。