mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 19:35:41 +03:00
nvidia library use of dynamic library seems to conflict with alpine and musl based OSes. This adds a `nonvidia` tag to allow compiling nomad for alpine images. The nomad releases currently only support glibc based OS environments, so we default to compiling with nvidia.
15 lines
338 B
Go
15 lines
338 B
Go
// +build !nonvidia
|
|
|
|
package catalog
|
|
|
|
import (
|
|
"github.com/hashicorp/nomad/devices/gpu/nvidia"
|
|
)
|
|
|
|
// This file is where all builtin plugins should be registered in the catalog.
|
|
// Plugins with build restrictions should be placed in the appropriate
|
|
// register_XXX.go file.
|
|
func init() {
|
|
Register(nvidia.PluginID, nvidia.PluginConfig)
|
|
}
|