gpuinfo: Make building without cgo possible on Linux
Signed-off-by: Piotr Stankiewicz <piotr.stankiewicz@docker.com>
This commit is contained in:
parent
fc9b2a7171
commit
43b96fc9a8
|
|
@ -1,3 +1,5 @@
|
|||
//go:build linux && cgo
|
||||
|
||||
package gpuinfo
|
||||
|
||||
/*
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
//go:build linux && !cgo
|
||||
|
||||
package gpuinfo
|
||||
|
||||
import "errors"
|
||||
|
||||
// getVRAMSize returns total system GPU memory in bytes
|
||||
func getVRAMSize(_ string) (uint64, error) {
|
||||
return 0, errors.New("unimplemented without cgo")
|
||||
}
|
||||
Loading…
Reference in New Issue