Opened 8 years ago

Last modified 4 years ago

#5807 new bug

DPH library functions don't work without -fvectorise.

Reported by: benl Owned by: benl
Priority: normal Milestone:
Component: Data Parallel Haskell Version: 7.2.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Incorrect result at runtime Test Case:
Blocked By: #7330 Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Mukesh Tiwari reports:

ghci>import Data.Array.Parallel
ghci>import Data.Array.Parallel.PArray 
ghci>let u = Data.Array.Parallel.PArray.fromList [ 1 .. 10 ]
ghci>:t u
u :: PArray Double
ghci>u
fromList<PArray> [1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0]
ghci>let v = Data.Array.Parallel.fromPArrayP u
ghci>:t v
v :: [:Double:]
ghci>lengthP v
0

Change History (8)

comment:1 Changed 8 years ago by benl

Summary: lengthP returns bad resultDPH library functions don't work without -fvectorise.

DPH programs only work when compiled with -fvectorise. Without -fvectorise, the library exports dummy, place-holder functions that don't have full implementations. We use place-holders instead of simply throwing 'error' because these functions need to have the same strictness properties as the real ones. This is mentioned at http://www.haskell.org/haskellwiki/GHC/Data_Parallel_Haskell I'm leaving this bug open to remind us to replace the dummy place-holders with real code at some stage. There would be no point running this code for performance reasons, but at least it will be less confusing.

comment:2 Changed 8 years ago by igloo

difficulty: Unknown
Milestone: 7.6.1

comment:3 Changed 7 years ago by igloo

Milestone: 7.6.17.6.2

comment:4 Changed 7 years ago by benl

Blocked By: 7330 added

comment:5 Changed 5 years ago by thoughtpolice

Milestone: 7.6.27.10.1

Moving to 7.10.1.

comment:6 Changed 5 years ago by thoughtpolice

Milestone: 7.10.17.12.1

Moving to 7.12.1 milestone; if you feel this is an error and should be addressed sooner, please move it back to the 7.10.1 milestone.

comment:7 Changed 4 years ago by thoughtpolice

Milestone: 7.12.18.0.1

Milestone renamed

comment:8 Changed 4 years ago by bgamari

Milestone: 8.0.1

Moving DPH tickets out to _|_ as the project is more or less stagnant.

Note: See TracTickets for help on using tickets.