Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

1537 results about "Compiler" patented technology

A compiler is a computer program that translates computer code written in one programming language (the source language) into another language (the target language). The name compiler is primarily used for programs that translate source code from a high-level programming language to a lower level language (e.g., assembly language, object code, or machine code) to create an executable program.

Using a compiler to modify prompts for machine learning models used to generate database queries

A method for using a compiler to modify prompts for MLMs used to generate database queries includes receiving, at a query compiler, a first query of a database. The first query is at least in part generated by an MLM. The method includes determining, by the query compiler, whether the first query comprises an uncorrectable error. The method includes, responsive to determining that the first query comprises an uncorrectable error, generating a prompt element that describes the uncorrectable error and that is structured for inclusion in a prompt requesting the MLM to generate a modified first query that corrects the uncorrectable error. The method may include generating the prompt for the MLM, providing the prompt to the MLM, and responsive to providing the prompt, receiving, at the database query compiler, the modified first query that corrects the uncorrectable error.
Owner:WAII INC

PLC code generation and verification method based on large language model

The invention discloses a PLC code generation and verification method based on a large language model, and the method comprises the steps: generating multi-stage multi-mode input data which is used for representing user demands and formulating a system design scheme according to a demand analysis result; the multiple stages comprise a demand analysis stage and a design stage of a complete engineering cycle; the multi-mode input comprises a Pamp (Passive Amplitude Point); an ID graph and a natural language; then, according to the multi-stage multi-mode input data, a PLC code is generated; then, verification testing is carried out on the generated PLC code, and the verification testing comprises code verification and compiler verification; and finally, after the verification test on the PLC code is completed, deploying the PLC code. The PLC code deployment method is high in accuracy and automation degree, an efficient and accurate PLC code deployment method can be provided for network security researchers, and the PLC code deployment method can be widely applied to the technical field of computers.
Owner:GUANGZHOU UNIVERSITY

Software vulnerability detection method based on multi-modal feature adaptive fusion

The invention discloses a software vulnerability detection method based on multi-modal feature adaptive fusion. The method comprises the following steps: preprocessing a code sample; extracting multi-modal feature information from the sample, integrating front-end information of a compiler to enhance code sequence representation, and applying an enhanced graph representation learning method to improve code graph structure representation capability; a loss function in the samples is constructed, shared features and specific features of the two modes are fully mined, and a contrast learning loss function is adopted to enhance the distinction degree between the samples; modal sharing features are used as a bridge, specific features of all modals are fused in a self-adaptive mode, and efficient comprehensive code representation is generated; and inputting the code comprehensive representation into the classifier, and judging whether the code sample has vulnerabilities or not according to the prediction score. According to the method, a multi-modal vulnerability detection model is designed, so that the integrity of feature extraction and the accuracy of vulnerability detection are effectively improved.
Owner:JIANGXI NORMAL UNIV

Automatic modeling agent system based on MCP protocol and large model

The invention relates to an automatic modeling agent system based on an MCP protocol and a large model, and the system comprises a multi-modal input interface module which is used for receiving, analyzing and standardizing modeling instructions or intention descriptions inputted by a user through different media to form structured feature representations; the semantic understanding central module is used for performing semantic analysis on the structured feature representation by using a pre-trained large language model and outputting a user modeling intention; the MCP instruction compiler module is used for converting a user modeling intention into an MCP instruction sequence following an MCP protocol; and the modeling execution engine module is used for analyzing and automatically executing the MCP instruction sequence to complete modeling of the target three-dimensional model. According to the method, three-dimensional modeling can be completed without knowing professional modeling terms and concepts by a user, and the modeling automation and intelligence level is greatly improved.
Owner:BEIJING URBAN CONSTRUCTION DESIGN & DEVELOPMENT GROUP CO LIMITED

Software defined neural network layer pipelining

Embodiments herein describe techniques for expressing the layers of a neural network in a software model. In one embodiment, the software model includes a class that describes the various functional blocks (e.g., convolution units, max-pooling units, rectified linear units (ReLU), and scaling functions) used to execute the neural network layers. In turn, other classes in the software model can describe the operation of each of the functional blocks. In addition, the software model can include conditional logic for expressing how the data flows between the functional blocks since different layers in the neural network can process the data differently. A compiler can convert the high-level code in the software model (e.g., C++) into a hardware description language (e.g., register transfer level (RTL)) which is used to configure a hardware system to implement a neural network accelerator.
Owner:XILINX INC

Triton compiler assembly line-oriented optimization system and optimization method

The invention discloses an optimization system and optimization method for a Triton compiler assembly line. The system comprises a dialect manager, a conversion process manager, a user-defined optimization process constructor, an optimization process manager, an assembly line constructor, an optimization process tester and a performance evaluator. According to the method, the interface and the template which are provided for the user by the user-defined optimization process constructor and used for compiling the performance optimization strategy of the operation combination of the dialect involved in the conversion process, so that the user can design the optimization strategy in a targeted manner, and the code operation performance is improved; the optimization process manager allows specific optimization pass processes to be added for different GPU architectures, so that the optimization system has better GPU adaptability; the optimization process tester ensures correct execution of the optimization process, and the performance evaluator provides quantitative evaluation, so that the optimization effect can be verified. According to the optimization system, the dialect, the conversion process and the optimization process can be finely controlled, and the management flexibility and expandability of the optimization system are improved.
Owner:ZHEJIANG LAB

GPGPU (General Purpose Graphics Processing Unit)-based instruction execution acceleration method and GPGPU architecture

The invention discloses an instruction execution acceleration method based on a GPGPU and a GPGPU architecture, and relates to the field of high-performance computation.The method comprises the steps that a thread execution task output by a host compiler is received, and the thread execution task is scheduled according to the current idle state of a computing unit; capturing instruction data output by the host compiler, and executing concurrent instruction decoding according to the corresponding instruction type to obtain a machine code corresponding to the instruction data; obtaining an operand corresponding to the instruction data, and generating a to-be-transmitted instruction based on the machine code corresponding to the instruction data and the operand after secondary verification; according to the calculation complexity, determining an optimal calculation unit, and sending the to-be-launched instruction to the optimal calculation unit; and receiving an execution result of the to-be-transmitted instruction, and returning the execution result to the terminal. The thread execution task is dynamically scheduled according to the idle state of the computing unit, so that computing resources can be fully utilized, and the operation efficiency is improved.
Owner:YUANQIXIN (SHANDONG) SEMICONDUCTOR TECHNOLOGY CO LTD

Method and apparatus for ML graphs by a compiler

A system and method for splitting a machine learning (ML) graph is disclosed. The system includes a compiler configured to receive an ML model. The compiler generates a graph associated with the ML model, wherein the graph is an internal representation of the ML model. The graph is partitioned into a first subgraph and a second subgraph. The first subgraph is associated with an ML hardware, an ML emulator, or a combination thereof, and the second subgraph is associated with a processor different from the ML hardware. A set of low-level instructions associated with the first subgraph is generated. One or more resources in the ML hardware is identified to execute the set of low-level instructions associated with the first subgraph.
Owner:MARVELL ASIA PTE LTD

Method and device for automatically upgrading codes based on compiler and storage medium

The invention relates to the technical field of computer code upgrading, and discloses an automatic code upgrading method and device based on a compiler and a storage medium. The method comprises the steps that firstly, lexical analysis, grammatical analysis and semantic analysis are conducted on a source code, an abstract syntax tree is generated, then a new standard grammatical rule mapping table is constructed, and a new standard grammatical rule mapping table is generated; and traversing the abstract syntax tree, querying whether the nodes of the abstract syntax tree can be queried in the mapping table, outputting the character strings mapped to the queried nodes, and normally outputting codes conforming to node semantics for the nodes which are not queried. The abstract syntax tree of the original code is automatically traversed, and node matching and conversion are performed according to the syntax rule mapping table of the new standard, so that the need of manual intervention is greatly reduced, the automation degree of code migration from an old standard to the new standard is improved, a large amount of manpower and time cost is saved, and the migration problem caused by human errors is reduced.
Owner:SHANDONG INSPUR SCI RES INST CO LTD

Optimizing compilation of program code

Apparatuses, systems, and techniques to select optimizations to be performed by compilers. In at least one embodiment, a processor includes one or more circuits to perform a compiler to select one or more optimizations to one or more first versions of a program based, at least in part, on a result of performing said one or more optimizations on one or more second versions of said program.
Owner:NVIDIA CORP

Application programming interface to perform tensor operations

Apparatuses, systems, and techniques to perform one or more operations using a tensor. In at least one embodiment, one or more circuits are to perform an application programming interface (API) to perform one or more operations using one or more tensors based on at least one or more indications of the plurality of operations by the API, one or more compiler options indicated by the API, and / or one of one or more indications of an amount of storage to be used to perform the one or more operations.
Owner:NVIDIA CORP

Compiler for optimizing number of cores used to implement neural network

Some embodiments provide a compiler for optimizing the implementation of a machine-trained network (e.g., a neural network) on an integrated circuit (IC). The compiler of some embodiments receives a specification of a machine-trained network including multiple layers of computation nodes and generates a graph representing options for implementing the machine-trained network in the IC. In some embodiments, the graph includes nodes representing options for implementing each layer of the machine-trained network and edges between nodes for different layers representing different implementations that are compatible. In some embodiments, the graph is populated according to rules relating to memory use and the numbers of cores necessary to implement a particular layer of the machine trained network such that nodes for a particular layer, in some embodiments, represent fewer than all the possible groupings of sets of clusters.
Owner:AMAZON COM SERVICES LLC

Tracing just-in-time WASM compiler

An interpreter interacts with a tracing Just-In-Time (JIT) WebAssembly (WASM) compiler to compile frequently-executed interpreter opcodes into WASM code. The interpreter monitors the frequency of the execution of targeted locations of the interpreter opcodes of a web application to determine the most frequently executed linear sequences of the interpreter opcodes. The execution of the WASM code is monitored for execution failure before replacing the linear sequence of opcodes with an entry point opcode that immediately executes the WASM code without monitoring the execution failure of the WASM code.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Specification language for generating graph reachability-based analyses for cloud-based system resources

ActiveUS12132735B1Special data processing applicationsSecuring communicationProperty Specification LanguageReachability
Techniques are described for a domain-specific language and associated framework for implementing analyses of security, operational, or functional properties involving computing resources. The specification language enables users to readily define the semantics of a set of cross-resource relations of interest using a human-readable language. For example, the language enables users to express properties over computing resources based on a user-defined set of cross-resource relations. The specification language is human-readable, allowing users to easily add new cross-resource relations or to modify existing relations and properties, thereby enabling users to readily modify existing analyses or to create new ones entirely. The specification language is also machine-readable such that a compiler and other tools can automatically generate an ontology model based on local resource configurations, augment the graph with the cross-resource relations defined in the specifications, and perform graph reachability analyses based on defined properties of interest.
Owner:AMAZON TECH INC

Discovery of hardware characteristics of deep learning accelerators for optimization via compiler

Systems, devices, and methods related to a Deep Learning Accelerator and memory are described. For example, an integrated circuit device may be configured to execute instructions with matrix operands and configured with random access memory. A computing device running a compiler can interact and / or probe an integrated circuit device to identify hardware characteristics of the integrated circuit device in performing matrix computations. The compiler can generate and optimize a result of compilation from a description of an artificial neural network based at least in part on the hardware characteristics of the integrated circuit device. The result of compilation can include first data representative of parameters of the artificial neural network and second data representative of instructions executable by the integrated circuit device to generate an output of the artificial neural network based on the first data and an input to the artificial neural network.
Owner:MICRON TECHNOLOGY INC

Automated composite agent generation by implicit derivation

Automated composite agent generation includes generating an agent cooperation graph (ACG) based on machine-human interactions between a user and digital agents pretrained to perform automated tasks. The ACG nodes represent digital agents connected by edges weighted according to cooperation densities. A composite sub-graph (CSG) whose nodes represent cooperating digital agents that cooperatively perform related tasks in response to multiple user requests is generated based on the cooperation densities. A composite agent configured to perform a composite process in response to a composite instruction is generated and includes a composite evaluator and composite actuator. The composite evaluator is generated based on the multiple requests using a language model. The composite actuator is generated using an automated processes compiler that compiles the related automated processes. The composite actuator of the composite agent actuates the composite process, which performs the related automated tasks as a single, integrated process.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

Duplication of tensors for memory allocation in a reconfigurable data processor

A system comprises an array of reconfigurable units including a plurality of pattern compute units (PCUs) and a plurality of pattern memory units (PMUs), and a compiler configured to receive a tensor including a plurality of memory access patterns of a first type (read) and a second type (write) located in a logical memory of the compiler. Each memory access pattern includes a memory access particular to that type. The compiler is configured to create a plurality of duplicates of the tensor and assign one or more contexts of any type to the duplicate tensors, such that no two contexts of the same type are in the same duplicate tensor. The compiler is configured to trim the duplicate tensors to retain portions including its corresponding assigned contexts remove portions that are inconsequential to the assigned contexts and dispatch the assigned contexts from each duplicate tensor to one or more PMUs.
Owner:SAMBANOVA SYSTEMS INC

Deep learning optimization compiling system

The invention provides a deep learning optimization compiling system, which comprises an analyzer for segmenting a complete neural network calculation graph into a plurality of sub-graphs and distributing specific search time according to the importance degree of the sub-graphs; the optimizer is used for extracting high-level features in each sub-graph operator and carrying out coarse optimization on each sub-graph operator to form a basic code structure; the interpreter randomly initializes the size of a data block and compilation strategies of some for cycles, and obtains a complete representation of a computational graph at the same time; and the evaluator is used for evaluating the performance of the codes according to a cost model based on low energy consumption preference, obtaining a group of high-score implementations as selected, obtaining the actual performance through a compiler runtime module, and selecting the implementation with the optimal actual performance as output. The method has the following technical effects that the optimizable search space of the operator is reasonably expanded, automatic optimization of the end-to-end model and the operator of the deep learning compiler is realized, and high-performance codes suitable for different end-side devices are generated.
Owner:SCI & TECH INNOVATION RES CENT OF UNIT 32178 OF THE CHINESE PEOPLES LIBERATION ARMY

Massively parallel compilation of application code

Disclosed are various embodiments for massively parallel compilation of application code. A compiler application is executed in a compute instance of an elastic computing device. When an instruction to compile source code of an application is received, the compiler application generates virtual processes to compile a portion of the source code of the application separate from the compute instance having the compiler installation executing thereon. When the virtual processes complete the compilation of the source code, build artifacts are linked to generate an executable computing application.
Owner:AMAZON TECH INC

Automatic compiling and adapting method for RISC-V extension instruction

The invention discloses an automatic compiling and adapting method for an RISC-V extension instruction, and belongs to the technical field of compilers. According to the method, a dynamic DSL (Digital Subscriber Line) for registering a custom instruction, adding register use constraints and defining a specific code mode is designed. The LLVM plug-in is used for automatically integrating the registered custom instruction in the compiling process. The invention relates to a self-defined instruction rapid adaptation mechanism which is specially provided for a continuously provided RISC-V self-defined instruction expansion scene, and by automatically generating correct assembly codes of registered self-defined instructions, correct registers are automatically distributed and reserved according to register use constraints; the method comprises the following steps of: searching a defined specific code mode and semantics, and automatically generating and inserting a registered custom instruction in a program, so as to realize the rapid adaptation of a compiler to an RISC-V custom extension instruction and the automatic use of a program code to the custom instruction, and the whole process does not need a developer to manually modify the compiler or a program source code.
Owner:TIANJIN UNIV

Method, computing device, medium and program product for generating thread random transmissions within thread bundle

The invention relates to a method, a computing device, a medium and a program product for generating thread random transmissions within a thread bundle. The method comprises the steps that a thread local register is configured in a thread bundle so as to be used for maintaining a program counter expected to be executed by each thread in the thread bundle later, and the thread bundle shares one program counter; in response to determining that the execution of the program basic block is completed, selecting an active thread as a representative thread; and taking the program counter representing the subsequent expected execution of the thread as the program counter of the subsequent expected execution of the thread bundle. According to the method, thread deadlock can be avoided through a program solution, and automatic transformation can be completed in a compiler.
Owner:SHANGHAI BIREN TECH CO LTD

Program analysis method and device, readable storage medium and electronic equipment

The invention discloses a program analysis method and device, a readable storage medium and electronic equipment. A to-be-analyzed program is determined, an abstract syntax tree of the to-be-analyzed program is determined through a compiler corresponding to a programming language used by the to-be-analyzed program, nodes in the abstract syntax tree are standardized, and a standard syntax tree is determined. And determining each control flow edge and each data flow edge in the standard syntax tree through the standard syntax tree, adding each control flow edge and each data flow edge to the standard syntax tree, and determining the code attribute graph of the program to be analyzed. The abstract syntax tree is converted into the standard syntax tree, the abstract syntax trees of the programs to be analyzed in different programming languages are unified, and the code attribute graph is constructed based on the standard syntax tree, so that the method can be suitable for program analysis of the programs to be analyzed in various programming languages; different analysis algorithms do not need to be developed for different programming languages, the program analysis efficiency is improved, and the development cost is reduced.
Owner:ALIPAY (HANGZHOU) INFORMATION TECH CO LTD

Systems, methods, and computer-readable media for 3D asset compiler

This disclosure is directed to 3D asset compilers, including related systems, methods, computer-readable media, and computer program products. Some embodiments may include circuitry configured for or a method comprising hosting or running a three-dimensional (3D) asset compiler coded to present a graphical user interface (GUI) on a display of a user interface. Functionality of the 3D asset compiler may be accessible via the GUI and may include presenting a plurality of 3D digital assets, accessible to be selected by a user via the GUI, and compiling or combining together two or more 3D digital assets, selected by the user via the GUI into a compiled or combined 3D object. Non-transitory computer-readable storage may store the 3D object when compiled or combined together from the selected two or more 3D digital assets. The stored 3D object may be rendered for display on the display of the user interface.
Owner:DEARIE BRENDEN MICHAEL

ST language-based abstract syntax tree optimization method

According to the abstract syntax tree optimization method based on the ST language, the ST programming language is optimized through the compiler front-end technology, the code structure is optimized from the source, the compiling efficiency is improved, and the execution efficiency of the finally generated instruction is improved. An abstract syntax tree optimization method based on an ST language comprises the steps that 1, an antlr tool is used for conducting lexical analysis and grammatical analysis of the ST language, and a complete abstract syntax tree is created; (2) traversing the abstract syntax tree to carry out constant merging, calculating constant tree nodes in advance, and merging the constant tree nodes into a tree node; (3) traversing the abstract syntax tree to eliminate dead codes, and deleting useless tree nodes; and (4) traversing the abstract syntax tree to calculate characteristic values of the tree nodes, and eliminating sub-expressions according to the similarity of the tree nodes, thereby reducing redundant calculation and improving execution efficiency.
Owner:NANJING SCIYON AUTOMATION GRP

Method and device for realizing multi-service instance configuration, equipment and medium

The invention discloses a method, a device, equipment and a medium for realizing multi-service instance configuration, in the method, a Java compiler is called to scan a source code, a class marked with multi-instance container annotations is obtained, the class defines a plurality of service instances, and each service instance is marked with a corresponding multi-instance basic annotation; based on a preset annotation processor, traversing the multi-instance basic annotation corresponding to each service instance, obtaining a class attribute value and a prefix attribute value, and obtaining a first configuration class corresponding to the first automatic assembly class; according to the prefix attribute value, processing the byte code of the first configuration class and the byte code of the first automatic assembly class to obtain a second configuration class and a second automatic assembly class; and adding the second configuration class file and the second automatic assembly class file to the resource directory to realize configuration of the service instance. Thus, by introducing special multi-instance configuration annotations, namely, multi-instance container annotations and multi-instance basic annotations, the official automatic assembly class is expanded and customized, and multi-service instance configuration is achieved.
Owner:湖南长银五八消费金融股份有限公司

Low latency nodes fusion in a reconfigurable data processor

A data processing system includes an array of reconfigurable units and a compiler configured to generate a pipeline of n computational nodes related to a dataflow graph, interleaved between n+1 buffers on the array of reconfigurable units. Each computational node is coupled to perform calculations based on data received from an immediately preceding buffer of the n+1 buffers and store results of the calculations into an immediately following buffer of the n+1 buffers after a latency. The compiler is further configured to remove a buffer of the n+1 buffers from the pipeline based on a comparison of the latencies of the computational nodes. A corresponding method is also disclosed herein.
Owner:SAMBANOVA SYSTEMS INC

Context sensing code generation and real-time optimization method and system based on large language model

The invention relates to the technical field of artificial intelligence and software development, in particular to a context-aware code generation and real-time optimization method and system based on a large language model.The method comprises the following steps that a compiler front-end technology is utilized, input codes are analyzed, and an abstract syntax tree is constructed; function definition, variable declaration and statement block structure information are extracted through an abstract syntax tree, so that syntax and semantic structures of codes are obtained, and basic data support is provided for subsequent code generation and optimization; the method has the beneficial effects that the context graph covering grammar, semantics and runtime behaviors is constructed by fusing static grammar analysis (AST construction) and dynamic execution tracking (such as variable value change and function call time sequence), and the problem of context perception deficiency in a traditional code generation technology is solved. And the compatibility, the maintainability and the expandability of the generated code and the project architecture are improved.
Owner:SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD

Binary component vulnerability identification method based on large language model

The invention belongs to the technical field of computer system security, and particularly relates to a binary component vulnerability recognition method based on a large language model. The method solves the problems of various equipment types, various instruction set architectures, different compilers, different compiling optimization levels and the like in the current Internet of Things binary component vulnerability recognition, and comprises the following steps: S100: collecting various vulnerability description information of an Internet of Things component, extracting data from the vulnerability description information, and constructing a text information data set; s200, performing text segmentation processing on a long text in the text information data set; s300, inputting the constructed text information data set into a large language model for training and optimization; and S400, detecting the binary component by using the trained vulnerability recognition large model to obtain a binary component vulnerability detection result report.
Owner:TAIYUAN UNIVERSITY OF TECHNOLOGY

Configurable code cutting method

The invention provides a configurable code cutting method, which adopts a compiler preprocessing module to realize configurable code cutting, can process a complex conditional compiling structure, supports self-defined cutting according to a configuration file, and can better ensure the integrity and correctness of cut codes by cutting under conditional compiling logic, so that the code cutting efficiency is improved. The problem that in the source code publishing process of a large software project, in order to meet the external publishing requirements of different platforms, different function versions and safety requirements is solved.
Owner:WUHAN LINGJIU MICROELECTRONICS CO LTD