aboutsummaryrefslogtreecommitdiff
path: root/util/arena.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 /util/arena.cuh
parenta66cea8f77aeafa8523d28ea63a159826cef38a3 (diff)
feat(memtable): Add kernel function in cuda code
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'util/arena.cuh')
-rw-r--r--util/arena.cuh4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/arena.cuh b/util/arena.cuh
index b70dcb9..e9abd31 100644
--- a/util/arena.cuh
+++ b/util/arena.cuh
@@ -17,12 +17,12 @@ namespace leveldb {
class Arena {
public:
- explicit __device__ Arena();
+ explicit __device__ __host__ Arena();
Arena(const Arena&) = delete;
Arena& operator=(const Arena&) = delete;
- __device__ ~Arena();
+ __host__ __device__ ~Arena();
// Return a pointer to a newly allocated memory block of "bytes" bytes.
__device__ char* Allocate(size_t bytes);