aboutsummaryrefslogtreecommitdiff
path: root/db/skiplist.cuh
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2022-02-20 15:41:14 +0800
committerKunoiSayami <[email protected]>2022-02-20 15:41:14 +0800
commit32ce8b311269df205e192c2b61dc47faaa2c5971 (patch)
tree6f4bf4c7f2882215c49f6790df7022310e78d93d /db/skiplist.cuh
parenta66cea8f77aeafa8523d28ea63a159826cef38a3 (diff)
feat(memtable): Add kernel function in cuda code
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'db/skiplist.cuh')
-rw-r--r--db/skiplist.cuh2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/skiplist.cuh b/db/skiplist.cuh
index 1fd7091..125a790 100644
--- a/db/skiplist.cuh
+++ b/db/skiplist.cuh
@@ -218,7 +218,7 @@ struct SkipList<Key, Comparator>::Node {
// version of the returned Node.
return next_[n].load(cuda::memory_order_acquire);
}
- __device__ void SetNext(int n, Node* x) {
+ __device__ __host__ void SetNext(int n, Node* x) {
assert(n >= 0);
// Use a 'release store' so that anybody who reads through this
// pointer observes a fully initialized version of the inserted node.