Commit 3fc1e824 authored by Ubuntu's avatar Ubuntu

gpu model name

parent 41c71093
...@@ -72,6 +72,10 @@ func getGPU() ([]DeviceInfo, error) { ...@@ -72,6 +72,10 @@ func getGPU() ([]DeviceInfo, error) {
c = v c = v
} else { } else {
fmt.Println("can not find the model '" + name + "'") fmt.Println("can not find the model '" + name + "'")
for k, v := range comput {
fmt.Println(k, v)
}
} }
e = DeviceInfo{ e = DeviceInfo{
...@@ -98,35 +102,38 @@ func init() { ...@@ -98,35 +102,38 @@ func init() {
comput := make(map[string]uint64, 100) comput := make(map[string]uint64, 100)
comput[" NVIDIA GeForce RTX 4090"] = 1 * 10000 comput["NVIDIA GeForce RTX 4090"] = 1 * 10000
comput[" NVIDIA GeForce RTX 4080SUPER"] = 6450 comput["NVIDIA GeForce RTX 4080SUPER"] = 6450
comput[" NVIDIA GeForce RTX 4080"] = 6290 comput["NVIDIA GeForce RTX 4080"] = 6290
comput[" NVIDIA GeForce RTX 4070 Ti SUPER"] = 5860 comput["NVIDIA GeForce RTX 4070 Ti SUPER"] = 5860
comput[" NVIDIA GeForce RTX 4070 Ti"] = 4840 comput["NVIDIA GeForce RTX 4070 Ti"] = 4840
comput[" NVIDIA GeForce RTX 4070 SUPER"] = 4680 comput["NVIDIA GeForce RTX 4070 SUPER"] = 4680
comput[" NVIDIA GeForce RTX 4070"] = 4240 comput["NVIDIA GeForce RTX 4070"] = 4240
comput[" NVIDIA GeForce RTX 4060 Ti"] = 4210 comput["NVIDIA GeForce RTX 4060 Ti"] = 4210
comput[" NVIDIA GeForce RTX 4060"] = 2500 comput["NVIDIA GeForce RTX 4060"] = 2500
comput[" NVIDIA GeForce RTX 3090 Ti"] = 7960 comput["NVIDIA GeForce RTX 3090 Ti"] = 7960
comput[" NVIDIA GeForce RTX 3090"] = 7870 comput["NVIDIA GeForce RTX 3090"] = 7870
comput[" NVIDIA GeForce RTX 3080 Ti"] = 5500 comput["NVIDIA GeForce RTX 3080 Ti"] = 5500
comput[" NVIDIA GeForce RTX 3080"] = 5140
comput[" NVIDIA GeForce RTX 3070 Ti"] = 3480 //NVIDIA GeForce RTX 3080
comput[" NVIDIA GeForce RTX 3070"] = 3400 comput["NVIDIA GeForce RTX 3080"] = 5140
comput[" NVIDIA GeForce RTX 3060 Ti"] = 3090 //comput["NVIDIA GeForce RTX 3080"] = 5140
comput[" NVIDIA GeForce RTX 3060"] = 3250 comput["NVIDIA GeForce RTX 3070 Ti"] = 3480
comput[" NVIDIA GeForce RTX 3050"] = 2240 comput["NVIDIA GeForce RTX 3070"] = 3400
comput[" NVIDIA GeForce RTX 2080 Ti"] = 3200 comput["NVIDIA GeForce RTX 3060 Ti"] = 3090
comput[" NVIDIA GeForce RTX 2080 SUPER"] = 2290 comput["NVIDIA GeForce RTX 3060"] = 3250
comput[" NVIDIA GeForce RTX 2080"] = 2250 comput["NVIDIA GeForce RTX 3050"] = 2240
comput[" NVIDIA GeForce RTX 2070 SUPER"] = 2100 comput["NVIDIA GeForce RTX 2080 Ti"] = 3200
comput[" NVIDIA GeForce RTX 2070"] = 1990 comput["NVIDIA GeForce RTX 2080 SUPER"] = 2290
comput[" NVIDIA GeForce RTX 2060 SUPER"] = 1930 comput["NVIDIA GeForce RTX 2080"] = 2250
comput[" NVIDIA GeForce RTX 2060"] = 2370 comput["NVIDIA GeForce RTX 2070 SUPER"] = 2100
comput[" NVIDIA GeForce GTX 1080 Ti"] = 2620 comput["NVIDIA GeForce RTX 2070"] = 1990
comput[" NVIDIA GeForce GTX 1080"] = 1890 comput["NVIDIA GeForce RTX 2060 SUPER"] = 1930
comput[" NVIDIA GeForce GTX 1070 Ti"] = 1840 comput["NVIDIA GeForce RTX 2060"] = 2370
comput[" NVIDIA GeForce GTX 1070"] = 1640 comput["NVIDIA GeForce GTX 1080 Ti"] = 2620
comput["NVIDIA GeForce GTX 1080"] = 1890
comput["NVIDIA GeForce GTX 1070 Ti"] = 1840
comput["NVIDIA GeForce GTX 1070"] = 1640
} }
//10000 //10000
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment