From 91ba3a5cc7703ae3ba37be3ad43692556177a0a7 Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Sun, 28 May 2023 16:06:33 +0800 Subject: fix(exp): Fix sample not sort Signed-off-by: KunoiSayami --- sortlib.cuh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sortlib.cuh') diff --git a/sortlib.cuh b/sortlib.cuh index 4c339ca..6b19d3e 100644 --- a/sortlib.cuh +++ b/sortlib.cuh @@ -182,9 +182,9 @@ public: __host__ __device__ size_t length() const { return this->LENGTH; } }; -template void static rebuild(std::vector original) { +template void rebuild(std::vector original) { auto sample_length = original.size(); - auto sorter = CustomSort(sample_length); + auto sorter = CustomSort(sample_length, sizeof(T) * 8); auto tmp = new T[sample_length]; for (size_t i = 0; i < sample_length; i++) { -- cgit v1.3.1