From 6e5f558746eec09eda6132754649419430a86f41 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Wed, 30 Mar 2016 15:31:45 +0200 Subject: Made event an optional argument in the CLBlast C++ API --- scripts/generator/routine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/generator/routine.py') diff --git a/scripts/generator/routine.py b/scripts/generator/routine.py index 60b9fcc5..1086cecc 100644 --- a/scripts/generator/routine.py +++ b/scripts/generator/routine.py @@ -308,12 +308,12 @@ class Routine(): # ============================================================================================== # Retrieves the C++ templated definition for a routine - def RoutineHeaderCPP(self, spaces): + def RoutineHeaderCPP(self, spaces, default_event): indent = " "*(spaces + self.Length()) result = "template <"+self.template.name+">\n" result += "StatusCode "+self.name.capitalize()+"(" result += (",\n"+indent).join([a for a in self.ArgumentsDef(self.template)]) - result += ",\n"+indent+"cl_command_queue* queue, cl_event* event)" + result += ",\n"+indent+"cl_command_queue* queue, cl_event* event"+default_event+")" return result # As above, but now without variable names -- cgit v1.2.3