Added include-guards in viennacl headers generation ; bugfix in autotune.py's operation parsing

This commit is contained in:
Philippe Tillet
2014-11-02 10:31:27 -05:00
parent 0ae87eeff4
commit 6ca682e5eb
2 changed files with 4 additions and 4 deletions

View File

@@ -273,7 +273,7 @@ def update_viennacl_headers(viennacl_root, device, datatype, operation, addition
data = ''
if not data:
ifndef_suffix = ('_'.join(header_hierarchy) + '_hpp_').upper()
ifndef_suffix = ('_'.join(header_hierarchy + [cpp_device_name]) + '_hpp_').upper()
data = ('#ifndef VIENNACL_DEVICE_SPECIFIC_BUILTIN_DATABASE_' + ifndef_suffix + '\n'
'#define VIENNACL_DEVICE_SPECIFIC_BUILTIN_DATABASE_' + ifndef_suffix + '\n'
'\n'