From 8d98c61aa03969d064e0081a40a5c22c8e29eadf Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Sat, 27 May 2023 23:19:14 +0800 Subject: fix: Fix wrong std::vector function call in read_helper.h Signed-off-by: KunoiSayami --- expt_0525.cu | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'expt_0525.cu') diff --git a/expt_0525.cu b/expt_0525.cu index af024bc..c780c37 100644 --- a/expt_0525.cu +++ b/expt_0525.cu @@ -660,18 +660,19 @@ int main(int argc, char **argv) { exit(1); } - auto sample_length = strtol(argv[2], nullptr, 10); + auto sample_length = strtol(argv[1], nullptr, 10); auto insertion_length = strtol(argv[2], nullptr, 10); - auto search_length = strtol(argv[2], nullptr, 10); - auto total_row = 0UL; + auto search_length = strtol(argv[3], nullptr, 10); + printf("Sample: %ld, Insertion: %ld, Search: %ld\n", sample_length, + insertion_length, search_length); ReadHelper readHelper("normal_distribution.txt", sample_length, insertion_length + search_length); - readHelper.readFile(total_row); + readHelper.readFile(nullptr); std::vector _sample, _population; readHelper.split_into(_sample, _population); - printf("Create search vector: %ld\n", - _population.end() - _population.begin() + insertion_length); + /*printf("%lu, Create search vector: %ld\n", _population.size(), + _population.end() - (_population.begin() + insertion_length));*/ std::vector _search(_population.begin() + insertion_length, _population.end()); _population.resize(insertion_length); -- cgit v1.3.1