Nvidia patents code generator that picks versions based on variable traits
Nvidia describes a system that creates computer instructions for chips by choosing specific versions of code blocks based on the properties of the data they handle. It uses these data traits to remove unnecessary code and arrange memory more efficiently during the creation process.
In the filing’s own words
In various examples, a compiled code for execution of instructions on a host device including a graphics processing unit (GPU) and/or a central processing unit (GPU) is generated from a higher-level or intermediate representation. The code generation system can iteratively process functions of the input instructions by selecting an appropriate code generation function and selecting an appropriate variant of the code generation function. The variant of the code generation function can be selected based on a value of an attribute for a variable input to the function. A visitor configuration is used to cause the appropriate variant to be selected. By propagating values for a binding attribute of variables, statically defined code can be eliminated from the compiled output. In addition, memory allocation and layout can be optimized by propagating values for minimum, maximum, and/or divisibility attributes.
What exactly they claim (claim 1)
1. One or more processors comprising processing circuitry to: determine, from processing instructions, a function having an input variable comprising an attribute; select a variant for the function from a plurality of variants for the function based at least on an input value of the attribute; and execute the variant of the function to determine an output value of the attribute of an output variable of the variant of the function based at least on the input value of the attribute.
Facts
- Company
- Nvidia (NVIDIA Corporation)
- Official title
- CODE GENERATION BASED ON VARIABLE ATTRIBUTES
- Publication number
- US20260277557A1
- Application number
- 19081754
- Filed
- Mar 17, 2025
- Published
- Sep 17, 2026
- Inventors
- 3
- Claims
- 20
Classified under
G06F 8/34 Physics & computingG06T 1/20 Physics & computingMore from Nvidia in AI & software
- Nvidia patents AI coach that analyzes your gameplay to suggest strategies Oct 13, 2026
- Nvidia patents AI system that writes and voices character conversations Sep 10, 2026
- Nvidia patents system that uses AI to find bugs in game videos Sep 17, 2026
- Nvidia patents AI method to make digital characters move realistically Sep 8, 2026
- Nvidia patents AI system that builds image generators from text prompts Sep 15, 2026
Summaries are simplified from the filing’s own abstract and first claim. A patent filing is not a product announcement.
Patent data and drawings: U.S. Patent and Trademark Office (USPTO). Nebula is not affiliated with or endorsed by the USPTO.