Sha256: b30c3de0b7d3257127ead9461e650a7444ae4502e00ad57bc330c622655c1b17

Contents?: true

Size: 773 Bytes

Versions: 2

Compression:

Stored size: 773 Bytes

Contents

////////////////////////////////////////
//////////// Timers ////////////////////
////////////////////////////////////////

// Timer
cudaEvent_t bones_start1;

// Start the timer for the measurement of the whole scop
void bones_timer_start() {
  cudaDeviceSynchronize();
  cudaEventCreate(&bones_start1);
  cudaEventRecord(bones_start1,kernel_stream);
}

// End the timer for the measurement of the whole scop
void bones_timer_stop() {
  cudaDeviceSynchronize();
  cudaEvent_t bones_stop1;
  cudaEventCreate(&bones_stop1);
  cudaEventRecord(bones_stop1,kernel_stream);
  cudaEventSynchronize(bones_stop1);
  float bones_timer1 = 0;
  cudaEventElapsedTime(&bones_timer1,bones_start1,bones_stop1);
  printf(">>>\t\t Execution time [full scop]: %.3lf ms \n", bones_timer1);
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bones-compiler-1.6.0 skeletons/GPU-CUDA/common/timer_globals.c
bones-compiler-1.3.1 skeletons/GPU-CUDA/common/timer_globals.c