Generate the content of the configuration file, including license and header guards, based on general template file.
(self)
| 363 | self.architectures[architecture].add_measurement(single_benchmark_data) |
| 364 | |
| 365 | def create_config_file_content(self) -> str: |
| 366 | """ |
| 367 | Generate the content of the configuration file, including license |
| 368 | and header guards, based on general template file. |
| 369 | """ |
| 370 | if 'target_arch::gfx908' in self.architectures: |
| 371 | self.architectures['target_arch::unknown'] = copy.deepcopy(self.architectures['target_arch::gfx908']) |
| 372 | self.architectures['target_arch::unknown'].arch_name = 'target_arch::unknown' |
| 373 | |
| 374 | algorithm_template = env.get_template(self.cpp_configuration_template_name) |
| 375 | rendered_template = algorithm_template.render(all_architectures=self.architectures.values()) |
| 376 | |
| 377 | return rendered_template |
| 378 | |
| 379 | |
| 380 | """ |
no outgoing calls
no test coverage detected