Documentation
¶
Overview ¶
Package gpubuild provides functionality for compiling and packaging GPU drivers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DriverPackage ¶
type DriverPackage struct {
// Path is the local file path to the driver package.
Path string
// Version is the Nvidia driver version of the package.
Version string
}
DriverPackage describes a tarball generated by the driver compilation process. The tarball looks like this:
/drivers /drivers/nvidia-uvm.ko /drivers/nv-p2p-dummy.ko /drivers/gdrdrv.ko /drivers/nvidia.ko /drivers/nvidia-peermem.ko /drivers/nvidia-modeset.ko /drivers/nvidia-drm.ko /firmware /firmware/nvidia /firmware/nvidia/580.95.05 /firmware/nvidia/580.95.05/gsp_tu10x.bin /firmware/nvidia/580.95.05/gsp_ga10x.bin
func Compile ¶
func Compile(runfilePath, toolchainPath, outDir string) (*DriverPackage, error)
Compile generates a COS GPU driver package from a runfile.
toolchainPath is the local file path to an unpacked toolchain, including both cross-compilers and kernel headers. Cross-compilers should be in bin/, kernel headers should be in a directory that matches usr/src/linux-headers-*.
Compiles open source drivers if available, and falls back to closed source drivers if not available.
The result driver package will go in outDir as a tarball that looks like nvidia-drivers-${version}.tgz.