Commit fdb59bdf by Francois Gygi

removed APC timer calls

git-svn-id: http://qboxcode.org/svn/qb/trunk@1545 cba15fb0-1239-40c8-b417-11db7ca47a34
parent 52ba2abd
......@@ -31,16 +31,8 @@ using namespace std;
long long clk, clk_bwd, clk_fwd;
#endif
#if USE_APC
#include "apc.h"
#endif
int main(int argc, char**argv)
{
#if USE_APC
ApcInit();
#endif
const int niter = 10;
const int np = atoi(argv[1]);
const int nvec = atoi(argv[2]);
......@@ -86,14 +78,8 @@ int main(int argc, char**argv)
#ifdef IA32
clk = readTSC();
#endif
#if USE_APC
ApcStart(1);
#endif
fftw(bwplan,ntrans,(FFTW_COMPLEX*)&zvec[0],inc1,inc2,
(FFTW_COMPLEX*)0,0,0);
#if USE_APC
ApcStop(1);
#endif
#ifdef IA32
clk_bwd += readTSC() - clk;
#endif
......@@ -102,14 +88,8 @@ int main(int argc, char**argv)
#ifdef IA32
clk = readTSC();
#endif
#if USE_APC
ApcStart(2);
#endif
fftw(fwplan,ntrans,(FFTW_COMPLEX*)&zvec[0],inc1,inc2,
(FFTW_COMPLEX*)0,0,0);
#if USE_APC
ApcStop(2);
#endif
#ifdef IA32
clk_fwd += readTSC() - clk;
#endif
......@@ -167,14 +147,8 @@ int main(int argc, char**argv)
#ifdef IA32
clk = readTSC();
#endif
#if USE_APC
ApcStart(3);
#endif
fftw(bwplan,ntrans,(FFTW_COMPLEX*)&zvec[0],inc1,inc2,
(FFTW_COMPLEX*)&zvec_out[0],inc1,inc2);
#if USE_APC
ApcStop(3);
#endif
#ifdef IA32
clk_bwd += readTSC() - clk;
#endif
......@@ -184,14 +158,8 @@ int main(int argc, char**argv)
#ifdef IA32
clk = readTSC();
#endif
#if USE_APC
ApcStart(4);
#endif
fftw(fwplan,ntrans,(FFTW_COMPLEX*)&zvec[0],inc1,inc2,
(FFTW_COMPLEX*)&zvec_out[0],inc1,inc2);
#if USE_APC
ApcStop(4);
#endif
#ifdef IA32
clk_fwd += readTSC() - clk;
#endif
......@@ -222,8 +190,5 @@ int main(int argc, char**argv)
#endif
<< endl;
#endif
#if USE_APC
ApcFinalize();
#endif
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment