HcclEngineCtxDestroy
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
x |
|
x |
|
x |
For
Function
Destroys the corresponding communication engine context with a specified tag by specifying the communicator and communication engine.
Prototype
1 | HcclResult HcclEngineCtxDestroy(HcclComm comm, const char *ctxTag, CommEngine engine) |
Parameters
Parameter |
Input/Output |
Description |
||
|---|---|---|---|---|
comm |
Input |
Communicator handle. The HcclComm type is defined as follows:
|
||
ctxTag |
Input |
Communicator engine context tag. The maximum length is HCCL_RES_TAG_MAX_LEN. |
||
engine |
Input |
Communication engine type. |
Returns
HcclResult: HCCL_SUCCESS on success, or else failure.
Restrictions
None
Example
1 2 3 4 5 6 7 | HcclComm comm; uint64_t size = 16; void *ctx = nullptr; string ctxTag = "ctxTag"; CommEngine engine = CommEngine::COMM_ENGINE_CPU_TS; HcclResult ret = HcclEngineCtxCreate(comm, ctxTag, engine, size, &ctx); ret = HcclEngineCtxDestroy(comm, ctxTag, engine); |