Skip to content

Commit

Permalink
Merge cstone upstream (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
sekelle authored Jan 27, 2025
1 parent 87cdae5 commit a42f50e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions domain/include/cstone/primitives/warpscan.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <type_traits>

#include "cstone/cuda/gpu_config.cuh"
#include "cstone/primitives/clz.hpp"

namespace cstone
{
Expand All @@ -26,10 +27,6 @@ namespace cstone
__device__ __forceinline__ int imin(int a, int b) { return a < b ? a : b; }
__device__ __forceinline__ unsigned imin(unsigned a, unsigned b) { return a < b ? a : b; }

__device__ __forceinline__ int countLeadingZeros(uint32_t x) { return __clz(x); }

__device__ __forceinline__ int countLeadingZeros(uint64_t x) { return __clzll(x); }

__device__ __forceinline__ uint32_t reverseBits(uint32_t x) { return __brev(x); }

__device__ __forceinline__ uint64_t reverseBits(uint64_t x) { return __brevll(x); }
Expand Down
3 changes: 2 additions & 1 deletion domain/include/cstone/tree/definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

#pragma once

#include <cstdint>
#include <cassert>
#include <type_traits>
#include "cstone/cuda/annotation.hpp"

#include "cstone/primitives/stl.hpp"
Expand Down

0 comments on commit a42f50e

Please sign in to comment.