diff options
| author | KunoiSayami <[email protected]> | 2022-01-23 16:07:22 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2022-01-23 16:07:22 +0800 |
| commit | 543b7460adb9d76d3f6160fe7946e974ad9d4950 (patch) | |
| tree | 471cc5268b4795d84d575df31472fdfc1a126322 /db | |
| parent | 4fea7d70a4d1dbccb62e04f80106e4980aed60fa (diff) | |
test(skiplist): Support multiple insert in single thread
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'db')
| -rw-r--r-- | db/skiplist_test.cu | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/db/skiplist_test.cu b/db/skiplist_test.cu index 3499cd0..fc295d7 100644 --- a/db/skiplist_test.cu +++ b/db/skiplist_test.cu @@ -412,7 +412,9 @@ __global__ void testParallel(SkipList<Key, Comparator> * skipList, Key * keys, C //printf("key: %lu\n", keys[i]); skipList->Insert(keys[i]); }*/ - skipList->Insert(keys[start]); + for (unsigned i = 0; i < TEST_STEP; i++) { + skipList->Insert(keys[start + i]); + } //lock->unlock(); //printf("done: %u\n", start); } |
