[IE CLDNN] Generation of undefs optimization (#5158)

This commit is contained in:
Elizaveta Gerashchenko 2021-04-28 14:35:54 +03:00 committed by GitHub
parent 10f3d7e065
commit bc5b3c14bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,10 @@ class OpenCL2CHeaders(object):
undefs += "#ifdef " + name + "\n"
undefs += "#undef " + name + "\n"
undefs += "#endif\n"
if filename in self.include_files:
for include_file in self.include_files[filename]:
include_file_undefs = self.append_undefs(include_file)
undefs += include_file_undefs
return undefs
def append_file_content(self, filename, origin_file):