fix: lp: gin debug, print gpu count
This commit is contained in:
parent
23ba7faa84
commit
6c68ba1315
@ -257,6 +257,7 @@ var runCmd = &cli.Command{
|
||||
return err
|
||||
}
|
||||
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
handler := gin.New()
|
||||
|
||||
defer taskEngine.GracefullyTerminate(time.Hour)
|
||||
|
@ -805,6 +805,7 @@ func (l *LocalWorker) Info(context.Context) (storiface.WorkerInfo, error) {
|
||||
if err != nil {
|
||||
log.Errorf("getting gpu devices failed: %+v", err)
|
||||
}
|
||||
log.Infow("Detected GPU devices.", "count", len(gpus))
|
||||
|
||||
memPhysical, memUsed, memSwap, memSwapUsed, err := l.memInfo()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user