cudaapi

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cudaapi reads generated NVIDIA API availability records.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNarrowing

func CheckNarrowing(old, next *File) error

CheckNarrowing rejects changes that withdraw documented availability.

func CompareVersion

func CompareVersion(a, b string) (int, error)

CompareVersion compares dotted numeric release names. Unknown releases are errors.

Types

type Ancestry

type Ancestry struct {
	Older    string `json:"older"`
	Newer    string `json:"newer"`
	Evidence Input  `json:"evidence"`
}

type File

type File struct {
	Metadata Metadata
	Releases []Release
	Records  []Record
}

func Read

func Read(r io.Reader) (*File, error)

Read parses api.gen.txt. Coverage is explicit even when history is unavailable.

func ReadProvisional

func ReadProvisional(r io.Reader) (*File, error)

ReadProvisional reads generator availability data before final Go API extraction. It must not be used as the canonical CUDA changelog input.

func (*File) CompareRelease

func (f *File) CompareRelease(a, b string) (int, error)

CompareRelease compares exact release labels within this file's version scheme. Git revisions use captured source order, never lexical or invented semver order.

func (*File) OptionSince

func (f *File) OptionSince(option string) (string, error)

OptionSince returns a known introduction release for an option. At-floor options return the floor; incomplete history and absent options return an error.

func (*File) OptionSinceFor

func (f *File) OptionSinceFor(option, target string) (string, error)

OptionSinceFor looks up an exact option/value spelling for a Go target. Empty target accepts only matching records with unambiguous availability.

func (*File) Validate

func (f *File) Validate() error

type GitFile

type GitFile struct {
	Path         string `json:"path"`
	UpstreamPath string `json:"upstream_path"`
	BlobSHA1     string `json:"blob_sha1"`
	SHA256       string `json:"sha256"`
}

type Input

type Input struct {
	Path   string `json:"path"`
	SHA256 string `json:"sha256"`
}

type Metadata

type Metadata struct {
	Schema           int        `json:"schema"`
	Package          string     `json:"package"`
	Scheme           string     `json:"scheme"`
	Product          string     `json:"product"`
	Floor            string     `json:"floor"`
	Ceiling          string     `json:"ceiling"`
	Coverage         string     `json:"coverage"`
	RequiredReleases []string   `json:"required_releases"`
	Reason           string     `json:"reason,omitempty"`
	Ancestry         []Ancestry `json:"ancestry,omitempty"`
}

type Record

type Record struct {
	Declaration string            `json:"declaration"`
	Fields      map[string]string `json:"fields"`
}

type Release

type Release struct {
	Release          string  `json:"release"`
	Profile          string  `json:"profile"`
	DriverBranch     string  `json:"driver_branch,omitempty"`
	DriverSource     string  `json:"driver_source,omitempty"`
	ComponentVersion string  `json:"component_version"`
	ArchiveSHA256    string  `json:"archive_sha256,omitempty"`
	Source           *Source `json:"source,omitempty"`
	SourceStatus     string  `json:"source_status,omitempty"`
	Inputs           []Input `json:"inputs"`
}

type Source

type Source struct {
	Kind       string    `json:"kind"`
	Repository string    `json:"repository"`
	Revision   string    `json:"revision"`
	Tag        string    `json:"tag,omitempty"`
	Files      []GitFile `json:"files"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL