mirror of
https://github.com/moby/moby.git
synced 2026-06-24 08:48:23 +00:00
Change GPU device driver registration from init-time function assignment to direct function exports. This removes the init() function and global function variable pattern in favor of a more explicit approach. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
9 lines
203 B
Go
9 lines
203 B
Go
//go:build !linux
|
|
|
|
package daemon
|
|
|
|
import "tags.cncf.io/container-device-interface/pkg/cdi"
|
|
|
|
// RegisterGPUDeviceDrivers is a no-op on non-Linux platforms.
|
|
func RegisterGPUDeviceDrivers(_ *cdi.Cache) {}
|