aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gall <tom.gall@linaro.org>2014-04-15 15:53:13 +0000
committerTom Gall <tom.gall@linaro.org>2014-04-15 15:53:13 +0000
commit5a9cf773c90ab4599a221102ada058e73460adf6 (patch)
tree07f246b78eca257179b3f46082be4c4cd0d4f773
parentf1671ba96a63a9e761cd59886695a72f53c76a9b (diff)
Bug Fix: Log was wrong in one case working with command line
params that would lead to sigsegv.
-rw-r--r--sq-cl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sq-cl.c b/sq-cl.c
index d96bc46..1a47ce3 100644
--- a/sq-cl.c
+++ b/sq-cl.c
@@ -408,7 +408,7 @@ int main(int argc, char **argv){
opencl_prepare_data(s, sql, columnSettings);
- if (argc == 10 || argc == 11) {
+ if (argc == 11) {
if (*argv[10]=='d') {
opencl_map_output_vector_data(s);
opencl_shard_data(s, &col1_shard, 1);
@@ -416,6 +416,8 @@ int main(int argc, char **argv){
} else {
opencl_map_input_data(s);
}
+ } else if (argc == 10) {
+ opencl_map_input_data(s);
}
/*
resultFile = fopen("./ocl-results-sql2.txt", "w");