fre.make.create_makefile_script module
Creates the Makefile for model compilation
- fre.make.create_makefile_script.makefile_create(yamlfile: str, platform: str, target: str)
Creates the makefile for model compilation
- Parameters:
yamlfile (str) – Model compile YAML file
platform (str) – FRE platform; defined in the platforms yaml If on gaea c5, a FRE platform may look like ncrc5.intel23-classic
target (str) – Predefined FRE targets; options include [prod/debug/repro]-openmp
- Raises:
ValueError – Error if platform does not exist in platforms yaml configuration
Note
If additional library dependencies are defined in the compile.yaml file:
for a container build (library dependencies defined with “container_addlibs” in the compile yaml), a linkline script will be generated to determine paths for the additional libraries located inside the container and add the appropriate flags to the Makefile
for a bare-metal build (linker flags defined with “baremetal_linkerflags” in the compile yaml), linker flags are added to the link line in the Makefile