diff options
| author | KunoiSayami <[email protected]> | 2023-05-28 16:06:33 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2023-05-28 16:06:33 +0800 |
| commit | 91ba3a5cc7703ae3ba37be3ad43692556177a0a7 (patch) | |
| tree | 85cf1836ef7477b1b486cac89dd2cbe0809be976 /sortlib.cuh | |
| parent | 8d98c61aa03969d064e0081a40a5c22c8e29eadf (diff) | |
fix(exp): Fix sample not sort
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'sortlib.cuh')
| -rw-r--r-- | sortlib.cuh | 4 |
1 files changed, 2 insertions, 2 deletions
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 <typename T> void static rebuild(std::vector<T> original) { +template <typename T> void rebuild(std::vector<T> 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++) { |
