summaryrefslogtreecommitdiff
path: root/scripts/generator/routine.py
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-03-30 15:31:45 +0200
committercnugteren <web@cedricnugteren.nl>2016-03-30 16:13:26 -0700
commit6e5f558746eec09eda6132754649419430a86f41 (patch)
treedbc842cfa0b805e690d5f77822740c7b6b70caa9 /scripts/generator/routine.py
parent6f561abada9abb54987ecea0cf10f547e2e88422 (diff)
Made event an optional argument in the CLBlast C++ API
Diffstat (limited to 'scripts/generator/routine.py')
-rw-r--r--scripts/generator/routine.py4
1 files changed, 2 insertions, 2 deletions
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