src/runtime_src/core/edge/skd/sk_daemon.cpp
static int createSoftKernel(unsigned int *boh, uint32_t cu_idx)
{
  int ret;

  *boh = xclAllocBO(devHdl, SOFT_KERNEL_REG_SIZE, 0, 0);
  if (*boh == 0xFFFFFFFF) {
    syslog(LOG_ERR, "Cannot alloc bo for soft kernel.\n");
    return -1;
  }

  ret = xclSKCreate(devHdl, *boh, cu_idx);

  return ret;
}
/*
 * This function calls XRT interface to create a soft kernel compute
 * unit. Before create soft kernel CU, we allocate a BO to hold the
 * reg file for that CU.
 */
This function calls XRT interface to create a soft kernel compute
unit. Before create soft kernel CU, we allocate a BO to hold the
reg file for that CU.
This function calls XRT interface to create a soft kernel compute unit . Before create soft kernel CU we allocate a BO to hold the reg file for that CU .
static int createSoftKernel(unsigned int *boh, uint32_t cu_idx)
{
  int ret;
  *boh = xclAllocBO(devHdl, SOFT_KERNEL_REG_SIZE, 0, 0);
  if (*boh == 0xFFFFFFFF) {
    syslog(LOG_ERR, "Cannot alloc bo for soft kernel.\n");
    return -1;
  }
  ret = xclSKCreate(devHdl, *boh, cu_idx);
  return ret;
}
static int createSoftKernel ( unsigned int * boh , uint32_t cu_idx ) { int ret ; * boh = xclAllocBO ( devHdl , SOFT_KERNEL_REG_SIZE , 0 , 0 ) ; if ( * boh == 0xFFFFFFFF ) { syslog ( LOG_ERR , " \n " ) ; return -1 ; } ret = xclSKCreate ( devHdl , * boh , cu_idx ) ; return ret ; }
This function calls XRT interface to create a soft kernel compute
 unit.
This function calls XRT interface to create a soft kernel compute unit .