Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Software migration method and device among multiple ecology, computer equipment and storage medium

A software migration and multi-ecology technology, applied in the field of artificial intelligence, can solve problems such as low software migration efficiency and inability to run graphics cards, and achieve the effect of improving migration efficiency

Pending Publication Date: 2021-09-07
DAWNING INFORMATION IND BEIJING
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Different brands of graphics cards have their own unique ecology, and each ecology has its own unique software library and API, so a set of software codes cannot run in different brands of graphics card ecology at the same time
At present, there is a lack of software migration solutions between different platform ecologies, resulting in programmers needing to write a set of software codes for each graphics card ecology, and the efficiency of software migration is low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Software migration method and device among multiple ecology, computer equipment and storage medium
  • Software migration method and device among multiple ecology, computer equipment and storage medium
  • Software migration method and device among multiple ecology, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] figure 1It is a flow chart of a method for software migration between multiple ecologies provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of software migration between different ecologies. The method can be executed by a computer device, and specifically includes the following steps :

[0055] Step 110, acquiring the first API called by the target software in the first ecology.

[0056] The target software runs in the first ecology. The first ecology may be a hardware ecology, and the target software implements the functions of the corresponding modules by calling the first API. In a usage scenario, the first ecology may be a graphics card hardware ecosystem, which includes the graphics card hardware, hardware drivers, and software libraries. The software related to the graphics card hardware ecology involves processor code, accelerator code and software function code. The target software in the embodiment of the pres...

Embodiment 2

[0071] figure 2 A method for migrating software between multiple ecosystems provided by Embodiment 2 of the present invention. As a further description of the above embodiment, step 110 can be implemented as: determining the API calling relationship according to the code structure of the target software; determining the first API calling relationship according to the calling relationship. Custom API and the first basic API of the first ecology. At this point, the method can be implemented in the following ways:

[0072] Step 210, determine the API calling relationship according to the code structure of the target software.

[0073] The code structure of the target software is used to represent the API calls contained in the target software and the nesting relationship of different functions. By traversing the code, it is possible to determine the functions contained in the target software and the APIs called by each function, and then determine the API calling relationship....

Embodiment 3

[0086] image 3 A method for migrating software between multiple ecology provided by Embodiment 2 of the present invention, as a further description of the above embodiment, step 120 may be implemented as: obtaining the second basic API corresponding to the first basic API in the second ecology; Generate the mapping relationship of the first basic API according to the second basic API and the first basic API; rename the first custom API according to the personalized naming rules to obtain the second custom API; generate the second custom API and the first Custom API mapping relationship. At this point, the method can be implemented in the following ways:

[0087] Step 310, acquiring the first API called by the target software in the first ecology.

[0088] Wherein, the first API includes the first custom API and the first basic API of the first ecology.

[0089] Step 320, acquiring a second basic API corresponding to the first basic API in the second ecology.

[0090] Opti...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a software migration method and device among multiple ecology, computer equipment and a storage medium. The method comprises the steps that a first API called by target software in a first ecology is acquired; a mapping relation is generated according to the first API, the mapping relation comprises a mapping relation between the first API and a second API, the second API is an API called by the second ecology, and the function of the second API in the second ecology is the same as the function of the first API in the first ecology; and migrating the first API according to the mapping relationship. Compared with the problem that software migration generally applicable to different ecology lacks at present, the mapping relation generated in the embodiment of the invention can represent the mapping relation between the first API of the first ecology and the second API of the second ecology, migration of the target software from the first ecology to the second ecology can be completed according to the mapping relation, and the migration efficiency of the target software is improved. And the software code migration efficiency is improved.

Description

technical field [0001] Embodiments of the present invention relate to artificial intelligence technology, and in particular to a method, device, computer equipment, and storage medium for software migration between multiple ecologies. Background technique [0002] At present, more and more hardware is used for machine learning of artificial intelligence. Because graphics cards have certain computing power, they are often used for certain computing tasks in machine learning. The execution of the computing task is realized according to the software code pre-edited by the programmer, and the software code completes the driving of the hardware by calling an application programming interface (Application Programming Interface, API) to realize the computing task. [0003] Different brands of graphics cards have their own unique ecology, and each ecology has its own unique software library and API, so a set of software codes cannot run in different brands of graphics card ecology ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/76G06F8/41
CPCG06F8/76G06F8/41
Inventor 杨璇胡辰卜景德
Owner DAWNING INFORMATION IND BEIJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products