code_gen

Function

Generates kernel delivery code using data from the input template library.

Function Prototype

gen_file = mskpp.Launcher(config).code_gen()

Parameters

Parameter

Input/Output

Description

gen_file

Input

Path of the kernel delivery code file.

Data type: str.

This parameter is optional. The default value is _gen_launch.cpp.

Return Value

Path of the generated code file.

Example

config = mskpp.KernelInvokeConfig(kernel_file, kernel_name) 
gen_file = mskpp.Launcher(config).code_gen() 

Related Class/Structure Definition

class KernelInvokeConfig:
    ...
    A configuration descriptor for a possible kernel developed based on an Act example
    ...
    def __init__(self, kernel_src_file : str, kernel_name : str):
        pass
# Only the KernelInvokeConfig type can be passed.
class Launcher:
    def __init__(self, config: KernelInvokeConfig): 
      ...
        a class that generates launch source code for a kernel

        Args:
            config (KernelInvokeConfig): A configuration descriptor for a kernel
        ...