Documentation
¶
Overview ¶
Package cuptiowner coordinates cooperating metric collectors by CUDA device. Exclusion is a library measurement policy, not a claim that every native API pair is incompatible. It does not reserve external processes or activity tracing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultNsightPerfGlobalRuntimeDirs = []string{
"/run/nvidia/nsight-perf",
}
DefaultNsightPerfGlobalRuntimeDirs lists the system-wide runtime directories where nvidia-nsight-perf places its router.observer socket.
var ErrCountersOwnedByNsightPerf = errors.New("counters owned by nvidia-nsight-perf")
ErrCountersOwnedByNsightPerf reports that the NVIDIA Nsight Perf SDK daemon (nvidia-nsight-perf) has bound its router.observer socket and exclusively owns the GPU hardware performance counters.
Functions ¶
func CheckNsightPerfCoexistence ¶
func CheckNsightPerfCoexistence(pkgPrefix string, getenv func(string) string, globalRuntimeDirs []string) error
CheckNsightPerfCoexistence inspects NVIDIA_NSIGHT_PERF_OBSERVER_SOCKET and the global and user-local ($XDG_RUNTIME_DIR) nvidia-nsight-perf runtime directories for an active router.observer socket. When detected, it returns an error wrapping ErrCountersOwnedByNsightPerf and the conflicting socket path before any CUPTI hardware counter API is called.
Types ¶
type Lease ¶
type Lease struct {
// contains filtered or unexported fields
}
Lease reserves a device until native cleanup succeeds. Do not copy it.
func AcquireDevice ¶
AcquireDevice rejects another cooperating metric collector on this ordinal. Device zero is valid. All participants must use CUDA device ordinals.