#pragma OPENCL EXTENSION cl_khr_fp64 : enable #pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable __kernel void lookupBufferAddress(__global uchar *_heap_base, ulong _frame_base, __constant uchar *_constant_region, __local uchar *_local_region, __global int *_atomics) { __global ulong *_frame = (__global ulong *) &_heap_base[_frame_base]; // BLOCK 0 _frame[0] = (ulong) _heap_base; } // kernel #pragma OPENCL EXTENSION cl_khr_fp64 : enable #pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable __kernel void mapCalcMc(__global uchar *_heap_base, ulong _frame_base, __constant uchar *_constant_region, __local uchar *_local_region, __global int *_atomics) { long l_8, l_7, l_6, l_21, l_20, l_19; int i_3, i_4, i_27, i_25, i_26, i_23, i_24, i_17, i_18, i_15, i_16, i_13, i_14, i_5; float f_12, f_10; ulong ul_1, ul_2, ul_0, ul_22, ul_9, ul_11; __global ulong *_frame = (__global ulong *) &_heap_base[_frame_base]; // BLOCK 0 ul_0 = (ulong) _frame[3]; ul_1 = (ulong) _frame[4]; ul_2 = (ulong) _frame[7]; i_3 = get_global_id(1); // BLOCK 1 MERGES [0 11 ] i_4 = 0; i_5 = i_3; for(;i_5 < 10;) { // BLOCK 2 l_6 = (long) i_5; l_7 = l_6 << 2; l_8 = l_7 + 24L; ul_9 = ul_1 + l_8; f_10 = *((__global float *) ul_9); ul_11 = ul_0 + l_8; f_12 = *((__global float *) ul_11); i_13 = get_global_id(0); // BLOCK 3 MERGES [2 10 ] i_14 = i_4; i_15 = i_13; for(;i_15 < 10;) { // BLOCK 4 // BLOCK 5 MERGES [4 7 ] i_16 = 0; for(;i_16 < 100;) { // BLOCK 6 i_17 = isless(f_10, f_12); if(i_17 == 1) { // BLOCK 7 i_18 = i_16 + 1; i_16 = i_18; } // B7 else { // BLOCK 8 break; // BLOCK 9 } // B9 // BLOCK 10 MERGES [9 8 ] l_19 = (long) i_14; l_20 = l_19 << 2; l_21 = l_20 + 24L; ul_22 = ul_2 + l_21; *((__global float *) ul_22) = 0.0F; i_23 = get_global_size(0); i_24 = i_23 + i_15; i_25 = i_14 + 1; i_14 = i_25; i_15 = i_24; } // B10 // BLOCK 11 i_26 = get_global_size(1); i_27 = i_26 + i_5; i_4 = i_14; i_5 = i_27; } // B11 // BLOCK 12 return; } // kernel