forked from AccelerateHS/accelerate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
module Test.Issues.Issue93 (test_issue93) | ||
where | ||
|
||
import Config | ||
import ParseArgs | ||
import Test.Base | ||
import Test.Framework | ||
import Test.Framework.Providers.HUnit | ||
|
||
import Prelude as P | ||
import Data.Array.Accelerate as A | ||
import Data.Label | ||
|
||
|
||
test_issue93 :: Config -> Test | ||
test_issue93 conf = | ||
testCase "93" (assertEqual xs $ run backend test1) | ||
where | ||
backend = get configBackend conf | ||
|
||
|
||
xs :: Array DIM2 Int | ||
xs = fromList (Z :. 1 :. 1) [5] | ||
|
||
test1 :: Acc (Array DIM2 Int) | ||
test1 = permute (\c _ -> c) (fill (shape xs') (constant 0)) id xs' | ||
where | ||
xs' = use xs | ||
|