1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
| 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)
| }
|
| }
|
|