Changeset 43 for tests

Show
Ignore:
Timestamp:
08/29/07 18:16:52 (1 year ago)
Author:
pernet
Message:

Updating the benchmark section to make it work with fflas-ffpack

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tests/test-ftrsm.C

    r38 r43  
    6262        } 
    6363                 
    64         Timer tim,t; t.clear();tim.clear();  
    65  
     64        Timer t; t.clear(); 
     65        double time=0.0; 
    6666        //write_field(F, cerr<<"A="<<endl, A, k,k,k); 
    6767 
     
    7171                FFLAS::ftrsm (F, side, uplo, trans, diag, m, n, alpha, A, k, B, n); 
    7272                t.stop(); 
    73                 tim+=t; 
     73                time+=t.usertime(); 
    7474                if (i+1<nbit) 
    7575                        for (int i=0; i<m*n;++i) 
     
    131131        delete[] B2; 
    132132#if TIME 
    133         double mflops = m*n/1000000.0*nbit*n/tim.usertime(); 
     133        double mflops = m*n/1000000.0*nbit*n/time; 
    134134        cerr<<"m,n = "<<m<<" "<<n<<". ftrsm " 
    135135            <<((side == FFLAS::FflasLeft)?" Left ":" Right ") 
     
    140140            <<endl 
    141141            <<"t= " 
    142             << tim.usertime()/nbit  
     142            << time/nbit  
    143143            << " s, Mffops = "<<mflops 
    144144            << endl; 
    145145         
    146         cout<<m<<" "<<n<<" "<<mflops<<" "<<tim.usertime()/nbit<<endl; 
     146        cout<<m<<" "<<n<<" "<<mflops<<" "<<time/nbit<<endl; 
    147147#endif 
    148148}