MCPcopy Create free account
hub / github.com/ROCm/rocPRIM / create_config_file_content

Method create_config_file_content

scripts/autotune/create_optimization.py:365–377  ·  view source on GitHub ↗

Generate the content of the configuration file, including license and header guards, based on general template file.

(self)

Source from the content-addressed store, hash-verified

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"""

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected