From 32ce8b311269df205e192c2b61dc47faaa2c5971 Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Sun, 20 Feb 2022 15:41:14 +0800 Subject: feat(memtable): Add kernel function in cuda code Signed-off-by: KunoiSayami --- db/skiplist.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db/skiplist.cuh') 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::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. -- cgit v1.3.1