summaryrefslogtreecommitdiff
path: root/expt_0525.cu
diff options
context:
space:
mode:
Diffstat (limited to 'expt_0525.cu')
-rw-r--r--expt_0525.cu13
1 files changed, 7 insertions, 6 deletions
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<key_type> _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<key_type> _search(_population.begin() + insertion_length,
_population.end());
_population.resize(insertion_length);