OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-CompactHash commits / 0cf0bf6

Removing hash init where not needed
0cf0bf61e27253d772378e230c3cc28d1a9684bc
by brobey <brobey@lanl.gov> · 2015-11-09T17:43:29.000Z

Changed files (1) +21 -21

neigh2d.c +21 -21
……@@ -894,11 +894,11 @@ struct neighbor2d *neighbors2d_hashcpu( uint ncells, int mesh_size, int levmx, i
894894 if(DETAILED_TIMING) cpu_timer_start(&tSection);
895895
896896 //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//}
902902
903903 if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection);
904904
……@@ -1068,11 +1068,11 @@ struct neighbor2d *neighbors2d_hashcpu_opt_1(uint ncells, int mesh_size, int lev
10681068 if(DETAILED_TIMING) cpu_timer_start(&tSection);
10691069
10701070 //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//}
10761076
10771077 if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection);
10781078
……@@ -1168,7 +1168,7 @@ struct neighbor2d *neighbors2d_hashlibcpu_opt_1( uint ncells, int mesh_size, int
11681168 if(DETAILED_TIMING) cpu_timer_start(&tSection);
11691169
11701170 //Empty Hash Table
1171 intintHash_EmptyTable(hashTable);
1171 intintHash_SetupTable(hashTable);
11721172
11731173 if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection);
11741174
……@@ -1257,11 +1257,11 @@ struct neighbor2d *neighbors2d_hashcpu_opt_2( uint ncells, int mesh_size, int le
12571257 if(DETAILED_TIMING) cpu_timer_start(&tSection);
12581258
12591259 //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//}
12651265
12661266 if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection);
12671267
……@@ -1368,7 +1368,7 @@ struct neighbor2d *neighbors2d_hashlibcpu_opt_2( uint ncells, int mesh_size, int
13681368 if(DETAILED_TIMING) cpu_timer_start(&tSection);
13691369
13701370 //Empty Hash Table
1371 intintHash_EmptyTable(hashTable);
1371 intintHash_SetupTable(hashTable);
13721372
13731373 if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection);
13741374
……@@ -2012,7 +2012,7 @@ cl_mem neighbors2d_hashlibgpu( uint ncells, int mesh_size, int levmx, cl_mem i_b
20122012 if(DETAILED_TIMING) cpu_timer_start(&tSection);
20132013
20142014 //Empty Hash Table
2015 intintHash_EmptyTable(hashTable);
2015 intintHash_SetupTable(hashTable);
20162016
20172017 if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection);
20182018
……@@ -2257,7 +2257,7 @@ cl_mem neighbors2d_hashlibgpu_opt_1( uint ncells, int mesh_size, int levmx, cl_m
22572257 if(DETAILED_TIMING) cpu_timer_start(&tSection);
22582258
22592259 //Empty Hash Table
2260 intintHash_EmptyTable(hashTable);
2260 intintHash_SetupTable(hashTable);
22612261
22622262 if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection);
22632263
……@@ -2503,7 +2503,7 @@ cl_mem neighbors2d_hashlibgpu_opt_2( uint ncells, int mesh_size, int levmx, cl_m
25032503 if(DETAILED_TIMING) cpu_timer_start(&tSection);
25042504
25052505 //Empty Hash Table
2506 intintHash_EmptyTable(hashTable);
2506 intintHash_SetupTable(hashTable);
25072507
25082508 if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection);
25092509
……@@ -2748,7 +2748,7 @@ cl_mem neighbors2d_hashlibgpu_opt_3( uint ncells, int mesh_size, int levmx, cl_m
27482748 if(DETAILED_TIMING) cpu_timer_start(&tSection);
27492749
27502750 //Empty Hash Table
2751 intintHash_EmptyTable(hashTable);
2751 intintHash_SetupTable(hashTable);
27522752
27532753 if(DETAILED_TIMING) emptyCPUTime = cpu_timer_stop(tSection);
27542754