diff options
| author | KunoiSayami <[email protected]> | 2023-06-04 18:34:21 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2023-06-04 18:34:21 +0800 |
| commit | 1fbb943005ad78335f0b921be516b3df8140406d (patch) | |
| tree | 454d384ed2566a907b11be57a6b7e49ddbc74605 /expt_0503.cu | |
| parent | d8384bdc4aa7fa1ccc24aec296fac83f1d43a2b4 (diff) | |
Diffstat (limited to 'expt_0503.cu')
| -rw-r--r-- | expt_0503.cu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/expt_0503.cu b/expt_0503.cu index 58f35aa..0ada96c 100644 --- a/expt_0503.cu +++ b/expt_0503.cu @@ -1,4 +1,5 @@ // Experimental content: Test branch performance +#define ENABLE_SORT_TEST #include "sortlib.cuh" #include <algorithm> @@ -59,8 +60,7 @@ __global__ void kernel(unsigned long step, const double slice_size, // printf("%d\n", tid); auto index = (int)(custom_sort.sample_cdf_custom_version( - cudaSampleItem, cudaSampleItem + cuda_sample_length, - cudaPopulationItem[tid]) / + cudaSampleItem, cudaPopulationItem[tid]) / slice_size) - 1; cdf_result[index] = true; |
