dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #19796
Re: [Question #127201]: valgrind
Question #127201 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/127201
Status: Open => Answered
Anders Logg proposed the following answer:
You need to set this option to run with Valgrind:
CGAL_DISABLE_ROUNDING_MATH_CHECK
This will configure the build against CGAL so that CGAL does not
interfere with Valgrind. If you use cmake-gui, you should be able to
see this option and just click it.
--
Anders
On Tue, Sep 28, 2010 at 06:00:10PM -0000, Murtazo Nazarov wrote:
> New question #127201 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/127201
>
> Hi,
>
> I am trying to use
> valgrind --tool=cachegrind ./demo
>
> to check the performance of my code, but I get the following error:
>
> ==27082==
> terminate called after throwing an instance of 'CGAL::Assertion_exception'
> what(): CGAL ERROR: assertion violation!
> Expr: -CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1)
> File: /usr/include/CGAL/Interval_nt.h
> Line: 158
> Explanation: Wrong rounding: did you forget the -frounding-math option if you use GCC?
> ==27082==
> ==27082== I refs: 22,583,550
> ==27082== I1 misses: 2,318
> ==27082== L2i misses: 2,216
> ==27082== I1 miss rate: 0.01%
> ==27082== L2i miss rate: 0.00%
> ==27082==
> ==27082== D refs: 8,211,978 (6,125,423 rd + 2,086,555 wr)
> ==27082== D1 misses: 279,852 ( 269,368 rd + 10,484 wr)
> ==27082== L2d misses: 59,980 ( 53,008 rd + 6,972 wr)
> ==27082== D1 miss rate: 3.4% ( 4.3% + 0.5% )
> ==27082== L2d miss rate: 0.7% ( 0.8% + 0.3% )
> ==27082==
> ==27082== L2 refs: 282,170 ( 271,686 rd + 10,484 wr)
> ==27082== L2 misses: 62,196 ( 55,224 rd + 6,972 wr)
> ==27082== L2 miss rate: 0.2% ( 0.1% + 0.3% )
> Abort
>
> Have anyone tried it out?
>
> murtazo
>
--
Anders
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.
Follow ups