MC2

Function

Registers an operator as an MC2 operator. After this API is called, an OpMC2Def structure is returned. You can use this structure to configure the communicator name.

Prototype

1
OpMC2Def &MC2(void)

Parameters

None

Returns

OpMC2Def structure, which can be used to configure the communicator name.

Restrictions

The custom operator project generated based on the CANN package of an earlier version (the MC2 feature is not supported) is incompatible with the MC2 API. When using a custom operator project generated based on the CANN package of a non-current version, pay special attention to compatibility issues. You can check whether the current project supports the MC2 feature by checking whether the _build_mc2_ctx field exists in the cmake/util/ascendc_impl_build.py file in the custom operator project. If the field does not exist, you need to regenerate the custom operator project to enable the MC2 feature.