Sha256: 6ca47372a5def2e8e5237f0a1e2482fc91772b854f9dd6141313351627caa35b
Contents?: true
Size: 608 Bytes
Versions: 6
Compression:
Stored size: 608 Bytes
Contents
// Start the timer for the measurement of the kernel execution time clFinish(bones_queue); for (int bones_iter=0; bones_iter<ITERS; bones_iter++) { // Flush the CPU cache (for measurement purposes only) const int bones_flush_size = 4*1024*1024; // (16MB) int bones_flush_i; int bones_flush_j; char *bones_flush_c = (char *)malloc(bones_flush_size); for (bones_flush_i=0; bones_flush_i<10; bones_flush_i++) { for (bones_flush_j=0; bones_flush_j<bones_flush_size; bones_flush_j++) { bones_flush_c[bones_flush_j] = bones_flush_i*bones_flush_j; } } free(bones_flush_c);
Version data entries
6 entries across 3 versions & 1 rubygems