OS Manuals

/usr/local/cuda-12.1/bin/bin2c

CUDA NVCC

From nvidia-cuda-nvcc-12.1 12.1.105-r9 (extra-packages), captured 2026-11-05 by running bin2c --help (exit 0). permalink

Usage  : bin2c [options] <inputfile>

Options
=======

--alignment <bytes>        (-a)
        Specify the alignment of the generated data array.
        Default value:  1.

--const                    (-c)
        Specify if the generated data array is constant.

--help                     (-h)
        Print this help information on this tool.

--name <name>              (-n)
        Specify the name of the generated data array.
        Default value:  'imageBytes'.

--nvint                    (-nvint)
        Replaces the type unsigned long long with a MISRA C 2012 compliant typedef'd
        variable nv_uint64

--options-file <file>,...  (-optf)
        Include command line options from specified file.

--padd <byte>,...          (-p)
        Specify trailing bytes.

--section <name>           (-s)
        Specify the data section in which the generated data array must be placed.

--static                   (-st)
        Generate the data array as a static variable.

--stdint                   (-stdint)
        Replaces the type unsigned long long with the MISRA C 2012 compliant uint64_t
        along with the inclusion of <stdint>

--type <type>              (-t)
        Specify the base type of the generated data array.
        Allowed values for this option:  'char','int','longlong','short'.
        Default value:  'char'.

--version                  (-V)
        Print version information on this tool.
Options (12)
OptionDescriptionSource
--alignment bytes(-a) Specify the alignment of the generated data array.help
--const(-c) Specify if the generated data array is constant.help
--help(-h) Print this help information on this tool.help
--name name(-n) Specify the name of the generated data array.help
--nvint(-nvint) Replaces the type unsigned long long with a MISRA C 2012 compliant typedef'd variable nv_uint64help
--options-file file(-optf) Include command line options from specified file.help
--padd byte(-p) Specify trailing bytes.help
--section name(-s) Specify the data section in which the generated data array must be placed.help
--static(-st) Generate the data array as a static variable.help
--stdint(-stdint) Replaces the type unsigned long long with the MISRA C 2012 compliant uint64_t along with the inclusion of <stdint>help
--type type(-t) Specify the base type of the generated data array.help
--version(-V) Print version information on this tool.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.