| … | … | @@ -78,8 +78,9 @@ int main() |
| 78 | 78 | KeyValue* pHashTable = create_hashtable(kHashTableCapacity); |
| 79 | 79 | |
| 80 | 80 | // Insert all the elements; each batch is processed concurrently on the GPU |
| 81 | | int num_batch_insertions = 10; |
| 82 | | int num_kvs_in_batch = kNumKeyValues / num_batch_insertions; |
| 81 | const uint32_t num_batch_insertions = 16; |
| 82 | static_assert(kNumKeyValues % num_batch_insertions == 0, "needs even divisor"); |
| 83 | uint32_t num_kvs_in_batch = kNumKeyValues / num_batch_insertions; |
| 83 | 84 | for (int i = 0; i < num_batch_insertions; i++) |
| 84 | 85 | { |
| 85 | 86 | insert_hashtable(pHashTable, all_kvs.data() + i*num_kvs_in_batch, num_kvs_in_batch); |