Warpspandocs
Reference

Configuration

Environment variables of the capture library and flags of the agent.

Capture library

Set in the environment of the app process. The library reads them once, when CUDA initialises.

VariableDefault
CUDA_INJECTION64_PATHnonePath to libwarpspan.so. Setting it is what turns Warpspan on.
WARPSPAN_SOCKET/var/run/warpspan/warpspan.sockThe agent's socket. Empty means don't send. Paths over 107 bytes are rejected.
WARPSPAN_DEBUG_FILEnoneAlso write one text line per kernel here. - means stderr.
WARPSPAN_QUIET1 turns off the library's log lines on stderr.
WARPSPAN_DISABLE1 loads the library but does nothing. Use it for runs with Nsight Systems or torch.profiler.
OTEL_SERVICE_NAME, OTEL_RESOURCE_ATTRIBUTESBecome the profile's service.name and resource attributes, as in the OpenTelemetry SDKs.

Without OTEL_SERVICE_NAME or a service.name in OTEL_RESOURCE_ATTRIBUTES, the service is unknown_service:<executable>.

Agent

./bin/warpspan [flags]
FlagEnvironmentDefault
--socketWARPSPAN_SOCKET/var/run/warpspan/warpspan.sockSocket the libraries connect to.
--otlp-endpointOTEL_EXPORTER_OTLP_PROFILES_ENDPOINT, OTEL_EXPORTER_OTLP_ENDPOINThttp://localhost:4317OTLP/gRPC endpoint. none turns export off.
--otlp-header k=vOTEL_EXPORTER_OTLP_HEADERSgRPC metadata. Repeat the flag for several.
--interval10sHow often to export.
--node-nameNODE_NAMEAdded as k8s.node.name to every profile.
--versionPrint the version and exit.

The endpoint's scheme picks the transport: http://host:port is plaintext, https://host:port or a bare host:port uses TLS. A path after the port isn't allowed. Each export has a 10 second timeout, and each round of exports has to finish within one interval (10 seconds at shutdown), so a hung Collector can't stall the agent.

Limits the agent enforces

LimitValue
Message size60 KiB
Kernel name length2048 bytes (the library truncates longer names)
Samples per process per interval20,000 with a span; past that, kernels are counted without their span; past 22,000 they go under [other kernels]
Connections1024

On this page