Ticket #9 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

The code generation fails when dealing with the operations on arrays of pairs.

Reported by: seanl Owned by: tmcdonell
Priority: major Milestone:
Component: CUDA backend Version: 0.7.1.0
Keywords: Cc:

Description (last modified by seanl) (diff)

The code generator used to generate code properly for the operations on arrays of pairs, but it doesn't any more after one of the recent patches.

Sat Jul 17 13:58:00 EST 2010 support for nested tuples

The attached module can reproduce the problem. Foo.hs

The following is the error message that I get:

seanl@lighthouse:simple$ ghci Foo.hs 
GHCi, version 6.12.3: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
[1 of 1] Compiling Foo              ( Foo.hs, interpreted )
Ok, modules loaded: Foo.
*Foo> main
Loading package syb-0.1.0.2 ... linking ... done.
Loading package base-3.0.3.2 ... linking ... done.
Loading package pretty-1.0.1.1 ... linking ... done.
Loading package extensible-exceptions-0.1.1.1 ... linking ... done.
Loading package filepath-1.1.0.4 ... linking ... done.
Loading package old-locale-1.0.0.2 ... linking ... done.
Loading package old-time-1.0.0.5 ... linking ... done.
Loading package unix-2.4.0.2 ... linking ... done.
Loading package directory-1.0.1.1 ... linking ... done.
Loading package array-0.3.0.1 ... linking ... done.
Loading package containers-0.3.0.0 ... linking ... done.
Loading package bytestring-0.9.1.7 ... linking ... done.
Loading package binary-0.5.0.2 ... linking ... done.
Loading package process-1.0.1.3 ... linking ... done.
Loading package time-1.1.4 ... linking ... done.
Loading package random-1.0.0.2 ... linking ... done.
Loading package haskell98 ... linking ... done.
Loading package cuda-0.2.1 ... linking ... done.
Loading package transformers-0.2.1.0 ... linking ... done.
Loading package monads-fd-0.1.0.1 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package fclabels-0.4.2.1 ... linking ... done.
Loading package language-c-0.3.1.1 ... linking ... done.
Loading package accelerate-0.7.1.0 ... linking ... done.
*** Exception: Pattern match failure in do expression at Data/Array/Accelerate/CUDA/CodeGen.hs:111:2-6
*Foo> 
Leaving GHCi.

Change History

Changed 4 years ago by seanl

  • version set to 0.7.1.0

Changed 4 years ago by seanl

  • description modified (diff)

It seems that Trac has some problems with the file attachment, so I paste the module that I used for testing at http://hpaste.org:

Foo.hs

Changed 4 years ago by seanl

  • description modified (diff)

Changed 4 years ago by seanl

  • description modified (diff)

Changed 4 years ago by seanl

  • description modified (diff)

Changed 4 years ago by tmcdonell

  • owner set to tmcdonell
  • status changed from new to assigned

Changed 4 years ago by tmcdonell

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.