This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Decrease testing time of g++.dg/cilk-plus/CK/fib-opr-overload.cc test
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Richard Biener <rguenther at suse dot de>
- Date: Fri, 27 Jan 2017 12:38:26 +0100
- Subject: [committed] Decrease testing time of g++.dg/cilk-plus/CK/fib-opr-overload.cc test
- Authentication-results: sourceware.org; auth=none
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
Richard reported too many resources required for this test, on a fast
8c16ht box I get for
time make check-g++ RUNTESTFLAGS=cilk-plus.exp=fib-opr*
real 0m17.801s
user 2m8.345s
sys 0m0.734s
With the following patch that I've installed after IRC discussions I get:
real 0m3.953s
user 0m7.229s
sys 0m0.780s
2017-01-27 Jakub Jelinek <jakub@redhat.com>
* g++.dg/cilk-plus/CK/fib-opr-overload.cc (main): Change
all occurrences of 40 to 32.
--- gcc/testsuite/g++.dg/cilk-plus/CK/fib-opr-overload.cc.jj 2016-04-28 19:13:17.000000000 +0200
+++ gcc/testsuite/g++.dg/cilk-plus/CK/fib-opr-overload.cc 2017-01-27 12:32:16.132735294 +0100
@@ -66,14 +66,14 @@ T fibonacci (T f)
int main (void)
{
- Some_Struct f (40), f_serial(40);
+ Some_Struct f (32), f_serial(32);
f = fibonacci (f);
f_serial = fibonacci_serial (f_serial);
if (f != f_serial)
__builtin_abort ();
- int t = 40, t_serial = 40;
+ int t = 32, t_serial = 32;
t = fibonacci (t);
t_serial = fibonacci_serial (t_serial);
if (t != t_serial)
@@ -86,8 +86,8 @@ int main (void)
__builtin_abort ();
#if HAVE_IO
- std::cout << "Fib_Parallel (40) = " << f.get_calculated_value() << std::endl;
- std::cout << "Fib_Serial (40) = " << f_serial.get_calculated_value()
+ std::cout << "Fib_Parallel (32) = " << f.get_calculated_value() << std::endl;
+ std::cout << "Fib_Serial (32) = " << f_serial.get_calculated_value()
<< std::endl;
#endif
return 0;
Jakub