Opened 2 years ago

Last modified 3 months ago

#7521 new bug

Simplifier ticks exhausted when compiling Accelerate example.

Reported by: eamsden Owned by:
Priority: high Milestone: 7.12.1
Component: Compiler Version: 7.6.1
Keywords: Cc: george.colpitts@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Compile-time crash Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description (last modified by simonpj)

When doing $ cabal build for: (commit def2495a1e7bd88e444540c3494b8674da99e201):

[31 of 36] Compiling SMVM.Matrix      ( examples/tests/simple/SMVM/Matrix.hs, dist_accelerate/build/accelerate-examples/accelerate-examples-tmp/SMVM/Matrix.o )
ghc: panic! (the 'impossible' happened)
  (GHC version 7.6.1 for x86_64-unknown-linux):
	Simplifier ticks exhausted
    When trying UnfoldingDone base:GHC.Base.returnIO1{v r5g} [gid]
    To increase the limit, use -fsimpl-tick-factor=N (default 100)
    If you need to do this, let GHC HQ know, and what factor you needed
    To see detailed counts use -ddump-simpl-stats
    Total ticks: 27960

Change History (9)

comment:1 Changed 2 years ago by simonpj

  • Description modified (diff)
  • difficulty set to Unknown

What -fsimpl-tick-factor makes it work?


comment:2 Changed 2 years ago by fmapE

I used -fsimpl-tick-factor=200 and it built.

comment:3 Changed 2 years ago by igloo

  • Milestone set to 7.8.1
  • Priority changed from normal to high

comment:4 Changed 11 months ago by George

Does this fail on 7.8.2?

comment:5 Changed 11 months ago by George

  • Cc george.colpitts@… added

comment:6 Changed 11 months ago by thoughtpolice

  • Milestone changed from 7.8.3 to 7.8.4

Moving to 7.8.4.

comment:7 Changed 6 months ago by thoughtpolice

  • Milestone changed from 7.8.4 to 7.10.1

Moving (in bulk) to 7.10.4

comment:8 Changed 5 months ago by thomie

  • Operating System changed from Linux to Unknown/Multiple

The file accelerate-examples.cabal in the latest version of that package ( contains:

if impl(ghc >= 7.6)
   ghc-options:        -fsimpl-tick-factor=130

When I remove those lines, trying to build the package with ghc-7.8.3 still results in a Simplifier ticks exhausted panic.

Steps to reproduce:

$ sudo apt-get install c2hs freeglut3-dev
$ cabal get accelerate-examples==
$ cd accelerate-examples
$ cabal install --dependencies-only
# `accelerate-cuda` might fail to install, just ignore that
# edit `accelerate-examples.cabal`
$ cabal build

comment:9 Changed 3 months ago by thoughtpolice

  • Milestone changed from 7.10.1 to 7.12.1

Moving to 7.12.1

Note: See TracTickets for help on using tickets.