op_dfx
The APIs described in this section are reserved and may be changed or deprecated in the future. They do not need your attention.
API Definition |
Function Usage |
|---|---|
ToString(const std::string &str) |
Converts std::string to ge::AscendString. |
OpDfxGuard(const char *file, int line, OpLevel level, const char *funcName, const char *paramNamesIn, const char *paramNamesOut, const INPUT_TUPLE &&in, const OUTPUT_TUPLE &&out) |
Indicates the constructor of the DFX statistics guard. |
OpDfxGuard(const char *file, int line, OpLevel level, const char *funcName) |
|
OpDfxGuard(uint32_t id, const char *file, int line, OpLevel level, const char *funcName, const char *paramNames, const std::tuple<Args...> &t) |
|
OpDfxGuard(uint64_t id, DfxProfilingType type) |
|
OpDfxGuard() |
|
ValidDfxName([[maybe_unused]]char const *a, [[maybe_unused]]char const *b) |
Checks whether a is equal to b? |
OpGetLogSequence() |
Obtains the log sequence number. |
GenSummaryItemId(const char *l2Name, const char *l0Name) |
Generates a unique statistics ID based on the API names of L2 and L0. |
GenSummaryItemId(const char *l2Name, const char *l0Name, const char *opType) |
Generates a unique statistics ID based on the L2 and L0 API names and operator type names. |
GenKernelLauncherId(const char *l0Name) |
Generates the kernel launch statistics ID based on the L0 API name. |
OpProfilingSwitch() |
Indicates the constructor of OpProfilingSwitch. |
OpLogInfo() |
Indicates the constructor of OpLogInfo. |
OpLogInfo(const OpLogInfo &rhs) |
Indicates the constructor of OpLogInfo. |
InitLevelZero() |
Initializes L0 statistics. |
InitLevelTwo() |
Initializes L2 statistics. |
PtrCastTo(From *ptr) |
Converts ptr to a pointer of a specified type. |
PtrCastTo(const From *ptr) |
|
GenOpTypeId(const char *opName) |
Generates a unique operator ID with the given operator name. |
IsDumpEnabled() |
Checks whether dump is enabled. |
InitThreadLocalContext() |
Initializes the thread local context. |
AddInputTensorToThreadLocalCtx(const aclTensor *const t) |
Adds an input tensor to the thread local context. |
AddInputTensorToThreadLocalCtx(aclTensor *const t) |
|
AddInputTensorToThreadLocalCtx([[maybe_unused]] T &t) |
|
AddInputTensorsToThreadLocalCtx(const std::tuple<Args...> &t) |
Adds multiple input tensors to the thread local context. |
AddInputTensorToThreadLocalCtx(const aclTensorList *const t) |
Adds the input tensorList to the thread local context. |
AddInputTensorToThreadLocalCtx(aclTensorList *const t) |
|
AddOutputTensorToThreadLocalCtx(const aclTensor *const t) |
Adds an output tensor to the thread local context. |
AddOutputTensorToThreadLocalCtx(aclTensor *const t) |
|
AddOutputTensorToThreadLocalCtx([[maybe_unused]] T &t) |
|
AddOutputTensorsToThreadLocalCtx(const std::tuple<Args...> &t) |
Adds multiple output tensors to the thread local context. |
AddOutputTensorToThreadLocalCtx(const aclTensorList *const t) |
Adds the output tensorList to the thread local context. |
AddOutputTensorToThreadLocalCtx(aclTensorList *const t) |
|
CreateDfxProfiler(const char *funcName) |
Creates a profiler with the given funcName. |
CreateDfxProfiler(uint32_t id) |
Creates a profiler with the given ID. |
ToStr(const T &t, std::string &res, std::vector<std::string> &v, size_t &index) |
Converts the given parameter to a string. |
StringToVec(const char *paramNames, std::vector<std::string> &v) |
Separates a given string by commas. |
StringToVecWithBrackets(const char *paramNames, std::vector<std::string> &v) |
Extracts the subitems of a string such as DFX_IN(aa, bb, cc) or DFX_OUT(aa, bb). |
SplitStringAndPrint(std::string &res) |
Splits a given long string into multiple substrings for printing. |
BuildParamString(const char *paramNames, const std::tuple<Args...> &t) |
Generates a parameter string based on the given operator input parameter. |
BuildParamStringWithBrackets(const char *paramNames, const std::tuple<Args...> &t) |
|
GenOpTypeId(const char *opName, const OP_RESOURCES &opResources) |
Generates a unique operator ID based on the given operator name and binary resources. |
GenOpTypeId(const char *opName, const OP_SOC_RESOURCES &opResources) |
Generates a unique operator ID based on the given operator name and SoC binary resources. |
GenInternalOpTypeId() |
Generates an internal operator ID. |
aclnnStatus CheckPhase1Params(aclOpExecutor **executor, uint64_t *workspaceSize) |
Checks whether the common input parameter is nullptr in the first phase. |