diff options
| author | KunoiSayami <[email protected]> | 2021-11-22 19:05:34 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2021-11-22 19:05:34 +0800 |
| commit | 0e18a4800b0737dc8f1d3720bc79bf000529ddef (patch) | |
| tree | 228a9860c2347a9076a47edc00b6a61e9f4ec663 /util/random.cuh | |
| parent | d30033359c0b97b28b50f54eeea6e820156f7578 (diff) | |
feat(skiplist): Convert skiplist to cuda version
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'util/random.cuh')
| -rw-r--r-- | util/random.cuh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/random.cuh b/util/random.cuh index 38eafe2..95845f1 100644 --- a/util/random.cuh +++ b/util/random.cuh @@ -17,7 +17,7 @@ class Random { uint32_t seed_; public: - explicit Random(uint32_t s) : seed_(s & 0x7fffffffu) { + __device__ explicit Random(uint32_t s) : seed_(s & 0x7fffffffu) { // Avoid bad seeds. if (seed_ == 0 || seed_ == 2147483647L) { seed_ = 1; |
