| … | … | @@ -894,11 +894,11 @@ struct neighbor2d *neighbors2d_hashcpu( uint ncells, int mesh_size, int levmx, i |
| 894 | 894 | if(DETAILED_TIMING) cpu_timer_start(&tSection); |
| 895 | 895 | |
| 896 | 896 | //Empty Hash Table |
| 897 | | for (int jj = 0; jj<jmaxsize; jj++){ |
| 898 | | for (int ii = 0; ii<imaxsize; ii++){ |
| 899 | | hash[jj][ii]=-1; |
| 900 | | } |
| 901 | | } |
| 897 | //for (int jj = 0; jj<jmaxsize; jj++){ |
| 898 | // for (int ii = 0; ii<imaxsize; ii++){ |
| 899 | // hash[jj][ii]=-1; |
| 900 | // } |
| 901 | //} |
| 902 | 902 | |
| 903 | 903 | if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection); |
| 904 | 904 | |
| … | … | @@ -1068,11 +1068,11 @@ struct neighbor2d *neighbors2d_hashcpu_opt_1(uint ncells, int mesh_size, int lev |
| 1068 | 1068 | if(DETAILED_TIMING) cpu_timer_start(&tSection); |
| 1069 | 1069 | |
| 1070 | 1070 | //Empty Hash Table |
| 1071 | | for (int jj = 0; jj<jmaxsize; jj++){ |
| 1072 | | for (int ii = 0; ii<imaxsize; ii++){ |
| 1073 | | hash[jj][ii]=-1; |
| 1074 | | } |
| 1075 | | } |
| 1071 | //for (int jj = 0; jj<jmaxsize; jj++){ |
| 1072 | // for (int ii = 0; ii<imaxsize; ii++){ |
| 1073 | // hash[jj][ii]=-1; |
| 1074 | // } |
| 1075 | //} |
| 1076 | 1076 | |
| 1077 | 1077 | if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection); |
| 1078 | 1078 | |
| … | … | @@ -1168,7 +1168,7 @@ struct neighbor2d *neighbors2d_hashlibcpu_opt_1( uint ncells, int mesh_size, int |
| 1168 | 1168 | if(DETAILED_TIMING) cpu_timer_start(&tSection); |
| 1169 | 1169 | |
| 1170 | 1170 | //Empty Hash Table |
| 1171 | | intintHash_EmptyTable(hashTable); |
| 1171 | intintHash_SetupTable(hashTable); |
| 1172 | 1172 | |
| 1173 | 1173 | if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection); |
| 1174 | 1174 | |
| … | … | @@ -1257,11 +1257,11 @@ struct neighbor2d *neighbors2d_hashcpu_opt_2( uint ncells, int mesh_size, int le |
| 1257 | 1257 | if(DETAILED_TIMING) cpu_timer_start(&tSection); |
| 1258 | 1258 | |
| 1259 | 1259 | //Empty Hash Table |
| 1260 | | for (int jj = 0; jj<jmaxsize; jj++){ |
| 1261 | | for (int ii = 0; ii<imaxsize; ii++){ |
| 1262 | | hash[jj][ii]=-1; |
| 1263 | | } |
| 1264 | | } |
| 1260 | //for (int jj = 0; jj<jmaxsize; jj++){ |
| 1261 | // for (int ii = 0; ii<imaxsize; ii++){ |
| 1262 | // hash[jj][ii]=-1; |
| 1263 | // } |
| 1264 | //} |
| 1265 | 1265 | |
| 1266 | 1266 | if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection); |
| 1267 | 1267 | |
| … | … | @@ -1368,7 +1368,7 @@ struct neighbor2d *neighbors2d_hashlibcpu_opt_2( uint ncells, int mesh_size, int |
| 1368 | 1368 | if(DETAILED_TIMING) cpu_timer_start(&tSection); |
| 1369 | 1369 | |
| 1370 | 1370 | //Empty Hash Table |
| 1371 | | intintHash_EmptyTable(hashTable); |
| 1371 | intintHash_SetupTable(hashTable); |
| 1372 | 1372 | |
| 1373 | 1373 | if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection); |
| 1374 | 1374 | |
| … | … | @@ -2012,7 +2012,7 @@ cl_mem neighbors2d_hashlibgpu( uint ncells, int mesh_size, int levmx, cl_mem i_b |
| 2012 | 2012 | if(DETAILED_TIMING) cpu_timer_start(&tSection); |
| 2013 | 2013 | |
| 2014 | 2014 | //Empty Hash Table |
| 2015 | | intintHash_EmptyTable(hashTable); |
| 2015 | intintHash_SetupTable(hashTable); |
| 2016 | 2016 | |
| 2017 | 2017 | if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection); |
| 2018 | 2018 | |
| … | … | @@ -2257,7 +2257,7 @@ cl_mem neighbors2d_hashlibgpu_opt_1( uint ncells, int mesh_size, int levmx, cl_m |
| 2257 | 2257 | if(DETAILED_TIMING) cpu_timer_start(&tSection); |
| 2258 | 2258 | |
| 2259 | 2259 | //Empty Hash Table |
| 2260 | | intintHash_EmptyTable(hashTable); |
| 2260 | intintHash_SetupTable(hashTable); |
| 2261 | 2261 | |
| 2262 | 2262 | if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection); |
| 2263 | 2263 | |
| … | … | @@ -2503,7 +2503,7 @@ cl_mem neighbors2d_hashlibgpu_opt_2( uint ncells, int mesh_size, int levmx, cl_m |
| 2503 | 2503 | if(DETAILED_TIMING) cpu_timer_start(&tSection); |
| 2504 | 2504 | |
| 2505 | 2505 | //Empty Hash Table |
| 2506 | | intintHash_EmptyTable(hashTable); |
| 2506 | intintHash_SetupTable(hashTable); |
| 2507 | 2507 | |
| 2508 | 2508 | if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection); |
| 2509 | 2509 | |
| … | … | @@ -2748,7 +2748,7 @@ cl_mem neighbors2d_hashlibgpu_opt_3( uint ncells, int mesh_size, int levmx, cl_m |
| 2748 | 2748 | if(DETAILED_TIMING) cpu_timer_start(&tSection); |
| 2749 | 2749 | |
| 2750 | 2750 | //Empty Hash Table |
| 2751 | | intintHash_EmptyTable(hashTable); |
| 2751 | intintHash_SetupTable(hashTable); |
| 2752 | 2752 | |
| 2753 | 2753 | if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection); |
| 2754 | 2754 | |