cuptilayout

command
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: 10 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

Cuptilayout measures the struct layouts of one CUPTI header with the C compiler and writes them as a text record.

Usage:

cuptilayout [-cc cc] [-header cupti_pcsampling.h] -cuda /usr/local/cuda-13.5 [-o dir]

It reads the header from the toolkit's include directory, finds every typedef'd struct and enum in it, and generates a C program that prints sizeof and alignment for each struct, offsetof and sizeof for each field (nested members included), and the value of each enumerator and of CUPTI_API_VERSION. The field list comes from the header being measured, not from the Go bindings, so a field a new release adds appears in the record. The program is compiled against that toolkit and run; with -o the record is written to dir/<CUPTI_API_VERSION>.txt, otherwise to standard output.

The record is evidence for a row of the table in github.com/tmc/lib/nvidia/internal/cuptiversion. Tests in nvidia/cupti compare the committed records with the Go types.

Jump to

Keyboard shortcuts

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