summaryrefslogtreecommitdiff
path: root/chillmodule.cc
diff options
context:
space:
mode:
authorDerick Huth <derickhuth@gmail.com>2015-09-24 11:26:53 -0600
committerDerick Huth <derickhuth@gmail.com>2015-09-24 11:26:53 -0600
commitc285135eb903c31cd221f90f03e288a6b67770cd (patch)
tree1f6ea3120a09feef7236dac579d5a2d5b774aaa7 /chillmodule.cc
parentf5c39e4c6ff55520948c2ef331c968cd84b817d9 (diff)
downloadchill-c285135eb903c31cd221f90f03e288a6b67770cd.tar.gz
chill-c285135eb903c31cd221f90f03e288a6b67770cd.tar.bz2
chill-c285135eb903c31cd221f90f03e288a6b67770cd.zip
pre-v0.2.1
Diffstat (limited to 'chillmodule.cc')
-rw-r--r--chillmodule.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chillmodule.cc b/chillmodule.cc
index fa55199..fbeb477 100644
--- a/chillmodule.cc
+++ b/chillmodule.cc
@@ -1431,7 +1431,7 @@ static PyObject* chill_permute(PyObject* self, PyObject* args) {
int stmt_num = intArg(args, 1);
int level = intArg(args, 2);
std::vector<int> pi;
- if(!tointvector(args, 2, pi))
+ if(!tointvector(args, 3, pi))
throw std::runtime_error("the third argument in permute(stmt_num, level, pi) must be an int vector");
myloop->permute(stmt_num, level, pi);
}
@@ -1750,7 +1750,7 @@ static PyMethodDef ChillMethods[] = {
{"print_space", chill_print_space, METH_VARARGS, "print something or other "},
{"add_sync", chill_add_sync, METH_VARARGS, "add sync, whatever that is"},
{"rename_index", chill_rename_index, METH_VARARGS, "rename a loop index"},
- {"permute", chill_permute_v2, METH_VARARGS, "change the order of loops?"},
+ {"permute", chill_permute, METH_VARARGS, "change the order of loops?"},
{"tile3", chill_tile_v2_3arg, METH_VARARGS, "something to do with tile"},
{"tile7", chill_tile_v2_7arg, METH_VARARGS, "something to do with tile"},
{"thread_dims", thread_dims, METH_VARARGS, "tx, ty, tz "},