Overview
Provides APIs for creating and managing tasks delivered to devices. The APIs allow developers to set or obtain the launch information about the tasks to be delivered to devices.
This class allows you to create a launch task or modify a launch task generated by the framework.
Header Files to Be Included
1 | #include "graph/kernel_launch_info.h" |
Public Member Functions
static KernelLaunchInfo LoadFromData(const gert::ExeResGenerationContext *context, const std::vector<uint8_t> &data) static KernelLaunchInfo CreateAicpuKfcTask(const gert::ExeResGenerationContext *context, const char *so_name, const char *kernel_name) static KernelLaunchInfo CreateHcomRecordTask(const gert::ExeResGenerationContext *context, const char *group_name = "group") static KernelLaunchInfo CreateHcomWaitTask(const gert::ExeResGenerationContext *context, const char *group_name = "group") std::vector<uint8_t> Serialize() uint32_t GetStreamId() const void SetStreamId(uint32_t stream_id) uint32_t GetBlockDim() const graphStatus SetBlockDim(uint32_t block_dim) const char *GetArgsFormat() const graphStatus SetArgsFormat(const char *args_format) const char *GetSoName() const const char *GetKernelName() const
Parent topic: KernelLaunchInfo