This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] libstdc++: Limit Riemann zeta testcases on simulator


> Date: Thu, 11 Oct 2007 08:56:13 -0400
> From: Ed Smith-Rowland <3dw4rd@verizon.net>

> Jesper Nilsson wrote:

> > +// This can take long on simulators, timing out the test.
> > +// { dg-options "-DMAX_ITERATIONS=5" { target simulator } }

> I might be OK to limit the number of iterations for *one* target.  The 
> data set that is being looped over is also a numeric accuracy check so 
> I'm a little reluctant to truncate the tests for *all* targets.

Jesper mentioned that the patch and the observations apply
*only* when running on a simulator.  I think it's appropriate to
prune the amount of numerical churn for such targets.  Similar
patches have been applied to other time-consuming tests in the
libstdc++ testsuite.

> OTOH, I'm a little shocked at how long it takes to run the computations!
> 
> I don't have access to this architecture.  Does this arch have floating 
> point?

No.

>  Or is it simulated?

Yes...

> Maybe we might want to xfail on targets where you really aren't going to 
> be crunching numbers.

The "target simulator" part takes care of that.

> I'll go check on my machines to see if Zeta is one of the more slow 
> algorithms.

I suggest not wasting that time; you probably will not notice it
on hardware-floating-point non-simulated hosts.

brgds, H-P


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]