diff options
| author | KunoiSayami <[email protected]> | 2023-05-17 01:56:15 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2023-05-17 01:56:15 +0800 |
| commit | ff0640807f810b5ac3d9f7a831b60e1266608a08 (patch) | |
| tree | c02f21fd433bf54549a2997778b0793c5a59e1ef /expt_0510.cu | |
| parent | b6bcd9a2eb08796e44f317bfcda2a14b6bb311db (diff) | |
feat(exp): Add expt_0516
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'expt_0510.cu')
| -rw-r--r-- | expt_0510.cu | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/expt_0510.cu b/expt_0510.cu index 7616c13..3efad47 100644 --- a/expt_0510.cu +++ b/expt_0510.cu @@ -183,8 +183,7 @@ void readFile(char const *filename, long sample_length, read_number = randomRow(total_row - sample_length - max_number - 256); total_row = read_number; // fprintf(stderr, "Skip %lu\n", read_number); - for (long long i; read_number > 0 && fscanf(file, "%lld ", &i) != EOF; - store_into_vector(i)) + for (long long i; read_number > 0 && fscanf(file, "%lld ", &i) != EOF;) read_number--; } @@ -225,7 +224,9 @@ int main(int argc, char const *argv[]) { total_row = strtol(argv[3], nullptr, 10); } - readFile("normal_distribution.txt", test_size, total_row); + CustomSort::testSelf(sample_length); + + readFile("normal_distribution.txt", sample_length, total_row, test_size); printf("population: %zu, skip: %lu, test size: %zu, sample length: %zu | ", population_vector.size(), total_row, test_size, sample_length); |
