summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-03-23 20:49:28 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2016-03-23 20:49:28 +0100
commit49822c8ead3313e88a08f31162870e88f8ad2bb5 (patch)
tree675c4cb2998b3e449fd39255fc02fa6a28b588b0 /scripts
parent706c6987c6044d49770874e5752968a3384a5300 (diff)
Fixed the C-api export to be able to properly build a DLL on Windows
Diffstat (limited to 'scripts')
-rw-r--r--scripts/generator/generator.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/generator/generator.py b/scripts/generator/generator.py
index 867fe520..8ff5e130 100644
--- a/scripts/generator/generator.py
+++ b/scripts/generator/generator.py
@@ -189,7 +189,7 @@ def clblast_c_h(routines):
for routine in routines:
result += "\n// "+routine.description+": "+routine.ShortNames()+"\n"
for flavour in routine.flavours:
- result += routine.RoutineHeaderC(flavour, 20, "")+";\n"
+ result += routine.RoutineHeaderC(flavour, 31, " PUBLIC_API")+";\n"
return result
# The C API implementation (.cc)
@@ -200,7 +200,7 @@ def clblast_c_cc(routines):
for flavour in routine.flavours:
template = "<"+flavour.template+">" if routine.NoScalars() else ""
indent = " "*(26 + routine.Length() + len(template))
- result += routine.RoutineHeaderC(flavour, 31, " PUBLIC_API")+" {\n"
+ result += routine.RoutineHeaderC(flavour, 20, "")+" {\n"
result += " auto status = clblast::"+routine.name.capitalize()+template+"("
result += (",\n"+indent).join([a for a in routine.ArgumentsCast(flavour, indent)])
result += ",\n"+indent+"queue, event);"
@@ -247,7 +247,7 @@ files = [
path_clblast+"/src/clblast_c.cc",
path_clblast+"/test/wrapper_clblas.h",
]
-header_lines = [84, 64, 80, 25, 22]
+header_lines = [84, 64, 88, 24, 22]
footer_lines = [6, 3, 5, 2, 6]
# Checks whether the command-line arguments are valid; exists otherwise