コード例 #1
0
    void call_func()
    {
        if (gpuTimer && cpuTimer)
        {
            gpuTimer->Start(gpuTimerID);
            cpuTimer->Start(cpuTimerID);

            xCsr2Dense_Function(false);

            cpuTimer->Stop(cpuTimerID);
            gpuTimer->Stop(gpuTimerID);
        }
        else
        {
            xCsr2Dense_Function(false);
        }
    }// end of call_func()
コード例 #2
0
 void call_func( )
 {
     timer.Start( timer_id );
     xCsr2Dense_Function( true );
     timer.Stop( timer_id );
 }