Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gpuhw
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
gpuhw
Commits
525e27ce
Commit
525e27ce
authored
May 23, 2024
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix listen 4000
parent
9c3db14e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
docker-compose-smi.yml
docker-compose-smi.yml
+1
-1
gpuhw-smi
gpuhw-smi
+0
-0
main-smi.go
main-smi.go
+2
-2
main.go
main.go
+1
-1
No files found.
docker-compose-smi.yml
View file @
525e27ce
...
...
@@ -2,7 +2,7 @@ version: "3.9"
services
:
monitorSmi
:
image
:
docker.ai.17xuexi.com/monitorapi/monitor-smi:v.0.0.
1
image
:
docker.ai.17xuexi.com/monitorapi/monitor-smi:v.0.0.
2
network_mode
:
host
volumes
:
-
/proc:/host/proc:ro
...
...
gpuhw-smi
View file @
525e27ce
No preview for this file type
main-smi.go
View file @
525e27ce
...
...
@@ -10,7 +10,7 @@ import (
"github.com/gofiber/swagger"
)
func
s
mi
()
{
func
S
mi
()
{
// Initialize a new Fiber app
app
:=
fiber
.
New
()
app
.
Use
(
cors
.
New
())
...
...
@@ -90,5 +90,5 @@ func smi() {
})
// Start the server on port 3000
log
.
Fatal
(
app
.
Listen
(
":
5
000"
))
log
.
Fatal
(
app
.
Listen
(
":
4
000"
))
}
main.go
View file @
525e27ce
...
...
@@ -2,5 +2,5 @@ package main
func
main
()
{
// DCGM()
s
mi
()
S
mi
()
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment