Skip to content

Commit

Permalink
CUDA device detection for Verthashminer
Browse files Browse the repository at this point in the history
  • Loading branch information
gertjaap committed Nov 11, 2020
1 parent 522e6e6 commit 669cb2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions miners/verthashminer.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ func (l *VerthashMinerImpl) AvailableGPUs() int8 {
if strings.HasPrefix(line, "<CL_Device") {
gpu++
}
if strings.HasPrefix(line, "<CU_Device") {
gpu++
}
}
in.Close()
os.Remove(tmpCfg)
Expand Down

0 comments on commit 669cb2d

Please sign in to comment.