Opened 8 years ago

Closed 5 years ago

#3942 closed bug (invalid)

Strange profiling behaviour in 6.10.4

Reported by: simonpj Owned by: simonmar
Priority: normal Milestone: 7.4.3
Component: Profiling Version: 6.10.4
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Greg Wright reports strange profiling behaviour in GHC 6.10.4: http://www.haskell.org/pipermail/glasgow-haskell-users/2010-March/018631.html

Change History (9)

comment:1 Changed 7 years ago by guest

I have done some further checking and removing the "-optc-O3" and "-optc-ffast-math" flags (suggested by Ian Lynagh) did not affect the result. In fact, removing all of the ghc options in the cabal file had no effect.

I will try to reduce this to a standalone test case. I know that earlier versions of nsyn compiled by ghc 6.8.3 and using direct FFI calls to the Gnu Scientific Library linear algebra code (instead of hmatrix) did profile correctly. I had used an older version of nsyn as a test case for the "prof2dot" program that converts a profile to a graphviz dot file.

comment:2 Changed 7 years ago by simonmar

Owner: simonmar deleted

comment:3 Changed 7 years ago by igloo

Milestone: 7.0.17.0.2

comment:4 Changed 7 years ago by igloo

Milestone: 7.0.27.2.1

comment:5 Changed 6 years ago by simonmar

Component: CompilerProfiling
Milestone: 7.2.17.4.1
Owner: set to simonmar

comment:6 Changed 6 years ago by simonmar

difficulty: Unknown
Milestone: 7.4.17.4.2

Tried to look into this, bug hmatrix doesn't compile with HEAD right now:

lib/Numeric/ContainerBoot.hs:100:33:
    Expecting one more argument to `c'
    In the type `e -> IndexOf c -> c e'
    In the class declaration for `Container'

I worked around that error with some explicit kind signatures, but then ran into more type errors and gave up.

Bumping to 7.4.2 when hmatrix will hopefully be working again.

comment:7 Changed 5 years ago by pcapriotti

Status: newinfoneeded

I tried compiling the example, but it doesn't build anymore with the latest hmatrix. I tried installing a few old versions of hmatrix, but none build with HEAD.

Greg, if this problem is still relevant to you, can you please provide an updated version of your code that builds with the latest libraries?

comment:8 Changed 5 years ago by igloo

Milestone: 7.4.27.4.3

comment:9 Changed 5 years ago by igloo

Resolution: invalid
Status: infoneededclosed

No response from submitter, so closing.

Note: See TracTickets for help on using tickets.