package proc import ( "analysis/logo" "analysis/util" "context" "strings" ) func slaveProc(ctx context.Context, typ string, id string, gpu int, shm bool) { name, ok := prepare(typ, gpu) if !ok { logo.Errorln("SLAVEPROC ERROR: ", name) return } if id != util.FakeSdkID { build(name, id, shm) runAll(ctx) } else { util.InitDBAPI() sdks := util.SDKInfo() // 首先运行yolo for k, v := range sdks { if strings.EqualFold(typ, v.SdkType) { build(v.SdkType, v.IpcId, shm) logo.Infof("SINGLE PROC ID %s TYPE %s\n", k, v.IpcId, v.SdkType) } } runAll(ctx) } }