Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,322
Issues
4,322
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
362
Merge Requests
362
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
35a209ce
Commit
35a209ce
authored
Mar 04, 2013
by
amosrobinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trac
#7736
: Parallel array enumeration causes compiler panic (enumFromToP), expected fail
parent
a3e91091
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
testsuite/tests/dph/enumfromto/EnumFromToP.hs
testsuite/tests/dph/enumfromto/EnumFromToP.hs
+24
-0
testsuite/tests/dph/enumfromto/Makefile
testsuite/tests/dph/enumfromto/Makefile
+3
-0
testsuite/tests/dph/enumfromto/dph-enumfromto.T
testsuite/tests/dph/enumfromto/dph-enumfromto.T
+9
-0
No files found.
testsuite/tests/dph/enumfromto/EnumFromToP.hs
0 → 100644
View file @
35a209ce
-- List enumeration doesn't work for parallel list comprehensions.
--
-- > ghc-stage2: panic! (the 'impossible' happened)
-- > (GHC version 7.7.20130109 for x86_64-unknown-linux):
-- > DsMonad: uninitialised ds_parr_bi
--
-- (I.enumFromToP is a workaround)
{-# LANGUAGE ParallelArrays, ParallelListComp #-}
{-# OPTIONS -fvectorise #-}
module
EnumFromToP
where
import
Data.Array.Parallel
hiding
((
+
),
(
-
),
(
*
),
(
/
))
import
Data.Array.Parallel.PArray
import
Data.Array.Parallel.Prelude.Bool
as
B
import
Data.Array.Parallel.Prelude.Double
as
D
import
qualified
Data.Array.Parallel.Prelude.Int
as
I
import
qualified
Data.Vector
as
V
import
qualified
Prelude
as
P
nums
=
[
:
0
..
100
:
]
testsuite/tests/dph/enumfromto/Makefile
0 → 100644
View file @
35a209ce
TOP
=
../../..
include
$(TOP)/mk/boilerplate.mk
include
$(TOP)/mk/test.mk
testsuite/tests/dph/enumfromto/dph-enumfromto.T
0 → 100644
View file @
35a209ce
test
('
EnumFromToP
'
,
[
extra_clean
(['
EnumFromToP.o
',
'
EnumFromToP.hi
'])
,
reqlib
('
dph-lifted-vseg
')
,
reqlib
('
dph-prim-par
')
,
ignore_output
,
expect_broken
(
7736
)
,
only_ways
(['
normal
',
'
threaded1
',
'
threaded2
'])
]
,
compile_fail
,
[
'
-O -fno-enable-rewrite-rules -package dph-lifted-vseg
'])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment