After the Operator Is Compiled with the -O0 -g Compilation Option, the Error Message "Min Stack Size Is Xxx, Larger Than Current Process Default Size 32768. Please Modify aclInit json, and Reboot Process." Is Displayed

Symptom

After the operator is compiled with the -O0 -g compilation option, the following error message is displayed:

[ERROR] xxx min stack size is xxx, larger than current process default size 32768. Please modify aclInit json, and reboot process.

Possible Cause

This error occurs if the stack space used by the kernel function is too large and exceeds the default stack space configured for the current process. As a result, the operator registration fails.

Solution

Configure a larger stack space in the JSON file passed to the aclInit () API. For example, add the following configuration to the JSON file to increase the stack space to 65536 bytes. For details, see AI Core Stack Size Configuration Examples.
{   
      "StackSize":{
            "aicore_stack_size":65536   
      } 
}