[GHC] #15488: GHC takes up huge amount of memory when compiling accelerate 1.2.0

GHC ghc-devs at haskell.org
Tue Sep 25 16:45:08 UTC 2018


#15488: GHC takes up huge amount of memory when compiling accelerate 1.2.0
-------------------------------------+-------------------------------------
        Reporter:  noah              |                Owner:  tdammers
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.4.3
      Resolution:                    |             Keywords:
                                     |  accelerate,memory,compile
Operating System:  Linux             |         Architecture:  x86_64
                                     |  (amd64)
 Type of failure:  Compile-time      |            Test Case:  accelerate
  performance bug                    |  1.2.0
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Interesting -- thanks for the smaller code.  This is beginning to smell
 like #15253.  See esp comment:22.

 `encodeVectorConst` has stuff like
 {{{
 intHost $(hashQ "V16") <> encodeSingleConst t a
                        <> encodeSingleConst t b
                        <> etc
 }}}
 where `encodeSingleConst` is a giant `case`.   So I think we may be over-
 doing case-of-case as in #15253.   I've been trying to work on #15253 but
 keep getting distracted.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15488#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list