Skip to content

Commit 7a17f2d

Browse files
authored
Update ops.hip
1 parent 5569c2d commit 7a17f2d

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

csrc/ops.hip

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,6 @@ using namespace BinSearch;
2424
using std::cout;
2525
using std::endl;
2626

27-
template <typename T> void estimateQuantiles(T *A, float *code, float offset, int n)
28-
{
29-
int num_blocks = n/4096;
30-
num_blocks = n % 4096 == 0 ? num_blocks : num_blocks + 1;
31-
CUDA_CHECK_RETURN(hipMemset(code, 0, 256*sizeof(float)));
32-
hipLaunchKernelGGL(( kEstimateQuantiles<T>), dim3(num_blocks), dim3(512), 0, 0, A, code, offset, std::numeric_limits<T>::max(), n);
33-
CUDA_CHECK_RETURN(hipPeekAtLastError());
34-
}
35-
3627
void quantize(float *code, float *A, unsigned char *out, int n)
3728
{
3829
int num_blocks = n/1024;

0 commit comments

Comments
 (0)