Examples of elapsedTimeMillis()


Examples of org.trifort.rootbeer.runtime.util.Stopwatch.elapsedTimeMillis()

    Stopwatch watch = new Stopwatch();
    watch.start();
    app.multMatrices(a, b, c_gpu, size);
    watch.stop();
    System.out.println("gpu time: "+watch.elapsedTimeMillis());

    watch = new Stopwatch();
    watch.start();
    app.cpuMultMatrices(a, b, c_cpu, size);
    watch.stop();
View Full Code Here

Examples of org.trifort.rootbeer.runtime.util.Stopwatch.elapsedTimeMillis()

    watch = new Stopwatch();
    watch.start();
    app.cpuMultMatrices(a, b, c_cpu, size);
    watch.stop();
    System.out.println("cpu time: "+watch.elapsedTimeMillis());
  }
}
View Full Code Here

Examples of org.trifort.rootbeer.runtime.util.Stopwatch.elapsedTimeMillis()

      Stopwatch watch = new Stopwatch();
      watch.start();
      rootbeer.run(testing_items);
      m_passed = true;
      watch.stop();
      m_gpuTime = watch.elapsedTimeMillis();
      watch.start();
      for(i = 0; i < known_good_items.size(); ++i){      
        Kernel known_good_item = known_good_items.get(i);
        known_good_item.gpuMethod();
      }
View Full Code Here

Examples of org.trifort.rootbeer.runtime.util.Stopwatch.elapsedTimeMillis()

      for(i = 0; i < known_good_items.size(); ++i){      
        Kernel known_good_item = known_good_items.get(i);
        known_good_item.gpuMethod();
      }
      watch.stop();
      m_cpuTime = watch.elapsedTimeMillis();
      for(i = 0; i < known_good_items.size(); ++i){
        Kernel known_good_item = known_good_items.get(i);
        Kernel testing_item = testing_items.get(i);
        if(!creator.compare(known_good_item, testing_item)){
          m_message = "Compare failed at: "+i;
View Full Code Here

Examples of org.trifort.rootbeer.runtime.util.Stopwatch.elapsedTimeMillis()

      context.buildState();
      context.run();
      context.close();
      m_passed = true;
      watch.stop();
      m_gpuTime = watch.elapsedTimeMillis();
      watch.start();
      RootbeerGpu.setBlockDimx(thread_config.getThreadCountX());
      RootbeerGpu.setBlockDimy(thread_config.getThreadCountY());
      RootbeerGpu.setBlockDimz(thread_config.getThreadCountZ());
      RootbeerGpu.setGridDimx(thread_config.getBlockCountX());
View Full Code Here

Examples of org.trifort.rootbeer.runtime.util.Stopwatch.elapsedTimeMillis()

            }
          }
        }
      }
      watch.stop();
      m_cpuTime = watch.elapsedTimeMillis();
      if(!creator.compare(known_good_item, testing_item)){
        m_message = "Compare failed at: "+i;
        m_passed = false;
        return;
      }
View Full Code Here

Examples of org.trifort.rootbeer.runtime.util.Stopwatch.elapsedTimeMillis()

        Stopwatch watch = new Stopwatch();
        watch.start();
        m_rootbeer.run(testing_items);
        m_passed = true;
        watch.stop();
        m_gpuTime = watch.elapsedTimeMillis();
        watch.start();
        for(i = 0; i < known_good_items.size(); ++i){      
          Kernel known_good_item = known_good_items.get(i);
          known_good_item.gpuMethod();
        }
View Full Code Here

Examples of org.trifort.rootbeer.runtime.util.Stopwatch.elapsedTimeMillis()

        for(i = 0; i < known_good_items.size(); ++i){      
          Kernel known_good_item = known_good_items.get(i);
          known_good_item.gpuMethod();
        }
        watch.stop();
        m_cpuTime = watch.elapsedTimeMillis();
        for(i = 0; i < known_good_items.size(); ++i){
          Kernel known_good_item = known_good_items.get(i);
          Kernel testing_item = testing_items.get(i);
          if(!m_creator.compare(known_good_item, testing_item)){
            m_message = "Compare failed at: "+i;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.