CN109918233A - A kind of data processing method, calculates equipment and storage medium at device - Google Patents

A kind of data processing method, calculates equipment and storage medium at device Download PDF

Info

Publication number
CN109918233A
CN109918233A CN201910167772.7A CN201910167772A CN109918233A CN 109918233 A CN109918233 A CN 109918233A CN 201910167772 A CN201910167772 A CN 201910167772A CN 109918233 A CN109918233 A CN 109918233A
Authority
CN
China
Prior art keywords
data
memory
worker thread
end gpu
backup command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910167772.7A
Other languages
Chinese (zh)
Other versions
CN109918233B (en
Inventor
谭贤亮
杨林
李晶晶
程佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Online Game Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Zhuhai Kingsoft Online Game Technology Co Ltd
Priority to CN201910167772.7A priority Critical patent/CN109918233B/en
Publication of CN109918233A publication Critical patent/CN109918233A/en
Application granted granted Critical
Publication of CN109918233B publication Critical patent/CN109918233B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This specification provides a kind of data processing method, device, calculates equipment and storage medium, wherein the data processing method includes: to submit the data backup command for backing up specified area data to the end GPU video driver by the first worker thread;The data backup command is inquired in the execution state of the end GPU video driver by the second worker thread;In the case where the execution state for inquiring the end GPU video driver is completes the data backup command, the memory space of the specified area data in the video memory of the end GPU is discharged.

Description

A kind of data processing method, calculates equipment and storage medium at device
Technical field
This specification is related to Internet technical field, in particular to a kind of data processing method, device calculate equipment and deposit Storage media.
Background technique
In the prior art, the editor's operation major part for being related to graphics process is carried out at the end GPU, GPU calculating process In maloperation in order to prevent, need be arranged withdraw and update function (UNDO/REDO) operation, this requires GPU need Often backup saves rollback data;And the implementation of UNDO/REDO operation is divided into two classes, record data and record operate.But It is that the mode restored after record operation handles complicated graphic operation not applicable.Because being related to some complexity Algorithm, be difficult to carry out by reverse operating to complete the reduction of figure.Therefore, complicated graphics processing operation is generally using record Operation.Record operation refer to by information just editor is opened when, save initial data, then record after user operates every time Result data, data here refer to the data that may be changed in information editing's window.Program will when doing UNDO operation Data before user's previous action are transmitted to the corresponding control of information editing's window.This way is changed the time with space, program It need not consider which data user changes on earth, be all possible data changed of replacement every time.When what is saved every time When data volume is smaller, this way is more convenient quick, but if data volume is big, such as including figure, video information etc., This method, which just compares, expends memory.
Rollback data are managed, and the capacity of video memory is smaller, it is difficult to support the storage of a large amount of rollback data, therefore, be bound to It will limit holding time and the renewal frequency of rollback data, it is difficult to support efficient rolling back action.
Summary of the invention
In view of this, this specification embodiment provides a kind of data processing method, device, calculates equipment and storage is situated between Matter, to solve technological deficiency existing in the prior art.
According to this specification embodiment in a first aspect, providing a kind of data processing method, comprising:
The data backup command for backing up specified area data is submitted to the end GPU video driver by the first worker thread;
The data backup command is inquired in the execution state of the end GPU video driver by the second worker thread;
In the case where the execution state for inquiring the end GPU video driver is completes the data backup command, release Put the memory space of the specified area data in the video memory of the end GPU.
Optionally, first worker thread that passes through submits the data for backing up specified area data to the end GPU video driver Backup instruction includes:
In the case where data backup command is a plurality of, by first worker thread by a plurality of data backup command pair The multiple specified area datas answered back up to CPU end memory from the end GPU video memory according to the submission sequence of a plurality of data backup command.
Optionally, data processing method further include:
In the case where the CPU end memory reaches storage cap, then the longest finger of storage time in CPU end memory is deleted Determine area data.
Optionally, data processing method further include:
The data for receiving the end GPU withdraw instruction, and it includes withdrawing in the CPU end memory to specify that the data, which are withdrawn in instruction, The data of area data withdraw instruction;
Instruction is withdrawn according to the data for withdrawing specified area data, by the specified area in the CPU end memory Numeric field data is withdrawn in the video memory of the end GPU.
Optionally, first worker thread and second worker thread are same worker thread or different operating line Journey.
According to the second aspect of this specification embodiment, a kind of data processing equipment is provided, comprising:
Module is submitted, is configured as submitting by the first worker thread to the end GPU video driver and backs up specified area data Data backup command;
Enquiry module is configured as inquiring the data backup command in the end GPU video card by the second worker thread The execution state of driving;
Release module is configured as standby to complete the data in the execution state for inquiring the end GPU video driver In the case where part instruction, the memory space of the specified area data in the video memory of the end GPU is discharged.
Optionally, the submission module is configured to:
In the case where data backup command is a plurality of, by first worker thread by a plurality of data backup command pair The multiple specified area datas answered back up to CPU end memory from the end GPU video memory according to the submission sequence of a plurality of data backup command.
Optionally, the submission module is configured to:
In the case where the CPU end memory reaches storage cap, then the longest finger of storage time in CPU end memory is deleted Determine area data.
Optionally, data processing equipment further include:
Receiving module, the data for being configured as receiving the end GPU withdraw instruction, and it includes withdrawing institute in instruction that the data, which are withdrawn, Stating in CPU end memory specifies the data of area data to withdraw instruction;
Module is withdrawn, the data for being configured as withdrawing specified area data according to withdraw instruction, will be in the end CPU The specified area data deposited is withdrawn in the video memory of the end GPU.
Optionally, first worker thread and second worker thread are same worker thread or different operating line Journey.
According to the third aspect of this specification embodiment, a kind of calculating equipment is provided, including memory, processor and deposit The computer instruction that can be run on a memory and on a processor is stored up, the processor realizes the number when executing described instruction The step of according to processing method.
According to the fourth aspect of this specification embodiment, a kind of computer readable storage medium is provided, is stored with meter The step of calculation machine instruction, which realizes the data processing method when being executed by processor.
In this specification embodiment, is submitted by the first worker thread to the end GPU video driver and back up specified area data Data backup command, the data backup command is inquired in the execution of the end GPU video driver by the second worker thread State discharges institute in the case where the execution state for inquiring the end GPU video driver is completes the data backup command State the memory space of the specified area data in the video memory of the end GPU;The storage of the release end GPU video memory is carried out by the above method Space, it is convenient and efficient, and the storage of a large amount of rollback data can be supported to improve by storing data in CPU end memory The storage time and renewal frequency of data ensure that efficient rollback data manipulation.
Detailed description of the invention
Fig. 1 is the structural block diagram provided by the embodiments of the present application for calculating equipment;
Fig. 2 is the flow chart of data processing method provided by the embodiments of the present application;
Fig. 3 is the interaction schematic diagram of data processing method provided by the embodiments of the present application;
Fig. 4 is the schematic diagram of data processing method provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of data processing equipment provided by the embodiments of the present application.
Specific embodiment
Many details are explained in the following description in order to fully understand the application.But the application can be with Much it is different from other way described herein to implement, those skilled in the art can be without prejudice to the application intension the case where Under do similar popularization, therefore the application is not limited by following public specific implementation.
The term used in this specification one or more embodiment be only merely for for the purpose of describing particular embodiments, It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and appended claims The "an" of singular used in book, " described " and "the" are also intended to including most forms, unless context is clearly Indicate other meanings.It is also understood that term "and/or" used in this specification one or more embodiment refers to and includes One or more associated any or all of project listed may combine.
It will be appreciated that though may be retouched using term first, second etc. in this specification one or more embodiment Various information are stated, but these information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other It opens.For example, first can also be referred to as second, class in the case where not departing from this specification one or more scope of embodiments As, second can also be referred to as first.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... " or " in response to determination ".
Firstly, the vocabulary of terms being related to one or more embodiments of the invention explains.
Rollback: it is program or data processing mistake, program or data are restored to the behavior of last correct status;Rollback Including the types such as program rollback and data rewind.
In this application, it provides a kind of data processing method, device, calculate equipment and storage medium, in following reality It applies in example and is described in detail one by one.
Fig. 1 shows the structural block diagram of the calculating equipment 100 according to one embodiment of this specification.The calculating equipment 100 Component includes but is not limited to memory 110 and processor 120.Processor 120 is connected with memory 110 by bus 130, number According to library 150 for saving data.
Calculating equipment 100 further includes access device 140, access device 140 enable calculate equipment 100 via one or Multiple networks 160 communicate.The example of these networks includes public switched telephone network (PSTN), local area network (LAN), wide area network (WAN), the combination of the communication network of personal area network (PAN) or such as internet.Access device 140 may include wired or wireless One or more of any kind of network interface (for example, network interface card (NIC)), such as IEEE802.11 wireless local area Net (WLAN) wireless interface, worldwide interoperability for microwave accesses (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) connect Mouth, cellular network interface, blue tooth interface, near-field communication (NFC) interface, etc..
In one embodiment of this specification, other unshowned portions in the above-mentioned component and Fig. 1 of equipment 100 are calculated Part can also be connected to each other, such as pass through bus.It should be appreciated that calculating device structure block diagram shown in FIG. 1 merely for the sake of Exemplary purpose, rather than the limitation to this specification range.Those skilled in the art can according to need, and increases or replaces it His component.
Calculating equipment 100 can be any kind of static or mobile computing device, including mobile computer or mobile meter Calculate equipment (for example, tablet computer, personal digital assistant, laptop computer, notebook computer, net book etc.), movement Phone (for example, smart phone), wearable calculating equipment (for example, smartwatch, intelligent glasses etc.) or other kinds of shifting Dynamic equipment, or the static calculating equipment of such as desktop computer or PC.Calculating equipment 100 can also be mobile or state type Server.
Wherein, processor 120 can execute the step in data processing method shown in Fig. 2.Fig. 2 shows according to this explanation The flow chart of the data processing method of one embodiment of book, including step 202 is to step 206.
Step 202: submitting the data backup for backing up specified area data to the end GPU video driver by the first worker thread Instruction.
In one embodiment of this specification, first worker thread that passes through is to the specified area of the end GPU video driver submission backup The data backup command of numeric field data includes:
In the case where data backup command is a plurality of, by first worker thread by a plurality of data backup command pair The multiple specified area datas answered back up to CPU end memory from the end GPU video memory according to the submission sequence of a plurality of data backup command.
Specifically, before edit operation occurs and executes, editing system is mentioned by the first worker thread to the end GPU video driver The data backup command for backing up specified area data is handed over, in the case where data backup command is a plurality of, editing system is according to mentioning Hand over data backup command sequence that the end GPU video driver is called to execute data backup command.For example, enterprising in computer drawing software Row drawing draws a circle and a line (first drawing circle, rear to draw lines), will be first corresponding to circle to be painted before carrying out picture circle and line Pre-existing data and the data wait be pre-stored in the corresponding second area that draws lines carry out data backup in region, according to elder generation Sequence afterwards first submits the data backup command for the data being pre-stored in first area corresponding to circle to be painted to the end GPU video card to drive It is dynamic, submit the data backup command of the data wait be pre-stored in the corresponding second area that draws lines to the end GPU video driver afterwards.
Wherein, the editing system can be graphic system, and this specification does not do any restriction herein.
Step 204: the data backup command is inquired in the execution of the end GPU video driver by the second worker thread State.
In one embodiment of this specification, first worker thread and second worker thread be same worker thread or Different operating thread.
Specifically, it in the case where first worker thread and second worker thread are same worker thread, compiles After the system of collecting submits the data backup command for backing up specified area data to the end GPU video driver by the first worker thread, institute It states the first worker thread and inquire the data backup command in the execution state of the end GPU video driver, according to work Work sequence first worker thread executes work.
In the case where first worker thread and second worker thread are not same worker thread, editing system The data backup command for backing up specified area data, while the second work are submitted to the end GPU video driver by the first worker thread Make thread and inquires the data backup command always in the execution state of the end GPU video driver, first worker thread Work is being executed simultaneously with the second worker thread.
Specifically, editing system inquires the data backup command in the end GPU video driver by worker thread Execution state;The execution state can be the end GPU video driver and be carrying out the data backup command or not hold also The row data backup command executes the completion data backup command.
Step 206: being to complete the feelings of the data backup command in the execution state for inquiring the end GPU video driver Under condition, the memory space of the specified area data in the video memory of the end GPU is discharged.
Specifically, it is to complete the data backup command that editing system, which inquires the execution state of the end GPU video driver, In the case of, the specified area data backs up in CPU end memory from the video memory of the end GPU, and specified area data has been backed up, The memory space for specifying area data in the video memory of the end GPU can be discharged, the smoothness of the end GPU video driver executive capability is improved Degree, and ensure that the renewal frequency of data.
In one embodiment of this specification, data processing method further include:
In the case where the CPU end memory reaches storage cap, then the longest finger of storage time in CPU end memory is deleted Determine area data.
Specifically, the CPU end memory memory space can be configured according to the EMS memory occupation of editing system, or can be with It is not provided with the memory space upper limit, general recommendations is set using 64 programs and enough memories are arranged, and this specification is not done herein Any restriction.
In one embodiment of this specification, data processing method further include:
The data for receiving the end GPU withdraw instruction, and it includes withdrawing in the CPU end memory to specify that the data, which are withdrawn in instruction, The data of area data withdraw instruction;
Instruction is withdrawn according to the data for withdrawing specified area data, by the specified area in the CPU end memory Numeric field data is withdrawn in the video memory of the end GPU.
Specifically, editing system needs to withdraw previous action when carrying out withdrawing operation, by receiving the end GPU Data withdraw instruction, withdraw from data to be withdrawn to the data for needing to withdraw in instruction in CPU end memory into the end GPU video memory, lead to It crosses this method editing system and obtains the data of previous action, the editing system can withdraw the step operated according to demand The data of any one step in rapid.
In this specification embodiment, is submitted by the first worker thread to the end GPU video driver and back up specified area data Data backup command, the data backup command is inquired in the execution of the end GPU video driver by the second worker thread State discharges institute in the case where the execution state for inquiring the end GPU video driver is completes the data backup command State the memory space of the specified area data in the video memory of the end GPU;The storage of the release end GPU video memory is carried out by the above method Space, it is convenient and efficient, and the storage of a large amount of rollback data can be supported, the CPU end memory is greater than the end GPU video memory, the end CPU The data volume of memory storage wants greatly more relative to the end GPU video memory, by storing data in CPU end memory, improves number According to storage time and renewal frequency, ensure that efficient rollback data manipulation.
Fig. 3 shows the interaction schematic diagram of the data processing method of one embodiment of this specification, and Fig. 4 shows this specification The schematic diagram of the data processing method of one embodiment.
Referring to Fig. 3, including the end GPU, editing system and the end CPU, the editing system is graphic system, described The end GPU includes video memory, and the end CPU includes memory, and data processing method is described as example, including step 302 to Step 318.
Step 302: graphic system is submitted to the end GPU video driver by the first worker thread and backs up specified number of regions According to data backup command.
It referring to fig. 4, include specified area data 1 and specified data area 2, CPU end memory space size in the video memory of the end GPU It can be configured according to the EMS memory occupation ratio of graphic system, in the present embodiment, CPU end memory space is greater than The end GPU video memory space.
Specifically, before graphic system carries out operation execution at the end GPU, graphic system passes through the first worker thread Data backup command is sent to the end GPU video driver, includes back up specified area data 1 first in the data backup command Data backup command and the second data backup command for backing up specified data area 2.The graphic system first submits first Data backup command, then submit the second data backup command to the end GPU video driver.
Step 304:GPU end video driver executes data backup command.
Step 306: graphic system inquires data backup command in the end GPU video driver by the second worker thread Execution state.
Specifically, the end GPU video driver executes the first data backup command and the second data backup command, suitable according to submitting Sequence, the end GPU video driver preferentially execute first data backup command, are executing second data backup command, figure Processing system inquires always the first data backup command and the second data backup command in the end GPU video card by the second worker thread The execution state of driving.
Graphic system inquire the end GPU video driver do not complete data backup command in the case where, continue waiting for, Until the end GPU video driver completes data backup command.
Graphic system is in the case where inquiring the end GPU video driver completion data backup command, comprising: the end GPU The case where video driver completes the first data backup command, does not complete the second data backup command or the end GPU video driver are completed The case where total data backup instruction.
Step 308: graphic system inquires the end GPU video driver and completes data backup command.
Step 310: specified area data is backed up to CPU end memory by graphic system.
Step 312: graphic system discharges the memory space that area data is specified in the video memory of the end GPU.
In practical applications, the execution of step 310 and step 312 can pass through figure there is no the restriction of sequencing Specified area data is backed up to CPU end memory from the end GPU video memory by processing system, while being discharged in the video memory of the end the CPU end GPU and being specified The memory space of area data can also first pass through graphic system and back up the specified area data from the end GPU video memory To CPU end memory, the memory space of area data is specified in the release end the CPU end GPU video memory.
Referring to fig. 4, the specified area data 1 in the video memory of the end GPU and specified area data 2 back up in CPU end memory.
Specifically, the end GPU video driver is inquired in graphic system to complete to specify the first data of area data 1 standby Part instruction, in the case where not completing the second data backup command for specifying area data 2, then graphic system will discharge GPU The memory space of specified area data 1 is held, CPU end memory backs up specified area data 1, and graphic system continues waiting for GPU Video driver is held to execute the execution state of the second data backup command.
The first data backup command that the end GPU video driver completes specified area data 1 is inquired in graphic system In the case where the second data backup command for specifying area data 2 with completion, then graphic system will be excellent according to submission sequence First the release end GPU specifies the memory space of area data 1 to discharge the memory space that area data 2 is specified at the end GPU again, in the end CPU Depositing preferential back up specifies area data 1 backing up specified area data 2.
Step 314: graphic system transmission withdraws data command to the end CPU.
Step 316: graphic system receives in CPU end memory and withdraws the corresponding specified area data of data command.
Referring to fig. 4, CPU end memory includes specified area data 3 and specified area data 4, specified 3 He of area data Specified area data 4 is the data by specifying area data to back up in advance in the video memory of the end GPU.
Specifically, graphic system operation error needs to withdraw the data in previous step acquisition previous step, figure The transmission of shape processing system withdraws data command to the end CPU, and it includes withdrawing the first of specified area data 3 that the data, which withdraw instruction, It withdraws data command and withdraws the second of specified area data 4 and withdraw data command, described first to withdraw data command corresponding Specified area data 3 is preferentially withdrawn, and graphic system, which receives, specifies area data 3 and specify in the CPU end memory Area data 4.
Step 318: graphic system withdraws the specified area data in CPU end memory to the end GPU video memory.
Specifically, it is corresponding to be withdrawn data command according to operation is withdrawn by graphic system for first in CPU end memory Specified area data 3 and second withdraws the corresponding specified area data 4 of data command and withdraws to the end GPU video memory, then the end CPU The memory space of area data 3 and specified area data 4 is specified to be discharged in memory.
In one embodiment of this specification, the memory space of the release end GPU video memory and returning for data are carried out by the above method Operation is removed, it is convenient and efficient, and the storage for largely withdrawing data can be supported, by storing data in CPU end memory, improve The storage time and renewal frequency of data ensure that and efficiently withdraw data manipulation.
Corresponding with above method embodiment, this specification additionally provides data processing equipment embodiment, and Fig. 5 shows this The structural schematic diagram of the data processing equipment of specification one embodiment.As shown in figure 5, the device 500 includes:
Module 502 is submitted, is configured as submitting by the first worker thread to the end GPU video driver and backs up specified number of regions According to data backup command;
Enquiry module 504 is configured as aobvious at the end GPU by the second worker thread inquiry data backup command Block the execution state of driving;
Release module 506 is configured as in the execution state for inquiring the end GPU video driver being the completion data In the case where backup instruction, the memory space of the specified area data in the video memory of the end GPU is discharged.
In an optional embodiment, the submission module 502 is configured to:
In the case where data backup command is a plurality of, by first worker thread by a plurality of data backup command pair The multiple specified area datas answered back up to CPU end memory from the end GPU video memory according to the submission sequence of a plurality of data backup command.
In an optional embodiment, the submission module 502 is configured to:
In the case where the CPU end memory reaches storage cap, then the longest finger of storage time in CPU end memory is deleted Determine area data.
In an optional embodiment, data processing equipment further include:
Receiving module, the data for being configured as receiving the end GPU withdraw instruction, and it includes withdrawing institute in instruction that the data, which are withdrawn, Stating in CPU end memory specifies the data of area data to withdraw instruction;
Module is withdrawn, the data for being configured as withdrawing specified area data according to withdraw instruction, will be in the end CPU The specified area data deposited is withdrawn in the video memory of the end GPU.
In an optional embodiment, first worker thread and second worker thread be same worker thread or Different operating thread.
In an optional embodiment, is submitted by the first worker thread to the end GPU video driver and back up specified number of regions According to data backup command, the data backup command holding in the end GPU video driver is inquired by the second worker thread Row state, in the case where the execution state for inquiring the end GPU video driver is completes the data backup command, release The memory space of the specified area data in the video memory of the end GPU;Depositing for the release end GPU video memory is carried out by the above method Space is stored up, it is convenient and efficient, and the storage of a large amount of rollback data can be supported, by storing data in CPU end memory, improve The storage time and renewal frequency of data, ensure that efficient rollback data manipulation.
A kind of calculating equipment is also provided in one embodiment of this specification, including memory, processor and is stored in memory Computer instruction that is upper and can running on a processor, the processor realize the data processing side when executing described instruction The step of method.
One embodiment of the application also provides a kind of computer readable storage medium, is stored with computer instruction, the instruction The step of data processing method as previously described is realized when being executed by processor.
A kind of exemplary scheme of above-mentioned computer readable storage medium for the present embodiment.It should be noted that this is deposited The technical solution of the technical solution of storage media and above-mentioned data processing method belongs to same design, the technical solution of storage medium The detail content being not described in detail may refer to the description of the technical solution of above-mentioned data processing method.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
The computer instruction includes computer program code, the computer program code can for source code form, Object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: that can carry institute State any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, the computer storage of computer program code Device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), Electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium include it is interior Increase and decrease appropriate can be carried out according to the requirement made laws in jurisdiction with patent practice by holding, such as in certain jurisdictions of courts Area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this Shen It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
The application preferred embodiment disclosed above is only intended to help to illustrate the application.There is no detailed for alternative embodiment All details are described, are not limited the invention to the specific embodiments described.Obviously, according to the content of this specification, It can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to preferably explain the application Principle and practical application, so that skilled artisan be enable to better understand and utilize the application.The application is only It is limited by claims and its full scope and equivalent.

Claims (12)

1. a kind of data processing method characterized by comprising
The data backup command for backing up specified area data is submitted to the end GPU video driver by the first worker thread;
The data backup command is inquired in the execution state of the end GPU video driver by the second worker thread;
In the case where the execution state for inquiring the end GPU video driver is completes the data backup command, institute is discharged State the memory space of the specified area data in the video memory of the end GPU.
2. the method according to claim 1, wherein first worker thread that passes through is to the end GPU video driver The data backup command for backing up specified area data is submitted to include:
It is by first worker thread that a plurality of data backup command is corresponding in the case where data backup command is a plurality of Multiple specified area datas back up to CPU end memory from the end GPU video memory according to the submission sequence of a plurality of data backup command.
3. according to the method described in claim 2, it is characterized by further comprising:
In the case where the CPU end memory reaches storage cap, the longest specified region of storage time in CPU end memory is deleted Data.
4. the method according to claim 1, wherein further include:
The data for receiving the end GPU withdraw instruction, and it includes withdrawing to specify region in the CPU end memory that the data, which are withdrawn in instruction, The data of data withdraw instruction;
Instruction is withdrawn according to the data for withdrawing specified area data, by the specified number of regions in the CPU end memory According to withdrawing in the video memory of the end GPU.
5. the method according to claim 1, wherein first worker thread and second worker thread are Same worker thread or different operating thread.
6. a kind of data processing equipment characterized by comprising
Module is submitted, is configured as submitting the number for backing up specified area data to the end GPU video driver by the first worker thread According to backup instruction;
Enquiry module is configured as inquiring the data backup command in the end GPU video driver by the second worker thread Execution state;
Release module is configured as referring in the execution state for inquiring the end GPU video driver to complete the data backup In the case where order, the memory space of the specified area data in the video memory of the end GPU is discharged.
7. device according to claim 6, which is characterized in that the submission module is configured to:
It is by first worker thread that a plurality of data backup command is corresponding in the case where data backup command is a plurality of Multiple specified area datas back up to CPU end memory from the end GPU video memory according to the submission sequence of a plurality of data backup command.
8. device according to claim 7, which is characterized in that the submission module is configured to:
In the case where the CPU end memory reaches storage cap, then the longest specified area of storage time in CPU end memory is deleted Numeric field data.
9. device according to claim 6, which is characterized in that further include:
Receiving module, the data for being configured as receiving the end GPU withdraw instruction, and the data withdraw described including withdrawing in instruction The data of area data are specified to withdraw instruction in CPU end memory;
Module is withdrawn, the data for being configured as withdrawing specified area data according to withdraw instruction, will be in the CPU end memory The specified area data withdraw in the video memory of the end GPU.
10. device according to claim 6, which is characterized in that first worker thread and second worker thread For same worker thread or different operating thread.
11. a kind of calculating equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine instruction, which is characterized in that the processor realizes the step of claim 1-5 any one the method when executing described instruction Suddenly.
12. a kind of computer readable storage medium, is stored with computer instruction, which is characterized in that the instruction is held by processor The step of claim 1-5 any one the method is realized when row.
CN201910167772.7A 2019-03-06 2019-03-06 Data processing method and device, computing equipment and storage medium Active CN109918233B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910167772.7A CN109918233B (en) 2019-03-06 2019-03-06 Data processing method and device, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910167772.7A CN109918233B (en) 2019-03-06 2019-03-06 Data processing method and device, computing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109918233A true CN109918233A (en) 2019-06-21
CN109918233B CN109918233B (en) 2021-02-26

Family

ID=66963573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910167772.7A Active CN109918233B (en) 2019-03-06 2019-03-06 Data processing method and device, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109918233B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114217976A (en) * 2021-12-23 2022-03-22 北京百度网讯科技有限公司 Task processing method, device, equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102810199A (en) * 2012-06-15 2012-12-05 成都平行视野科技有限公司 Image processing method based on GPU (Graphics Processing Unit)
US20140132614A1 (en) * 2012-11-14 2014-05-15 Microsoft Corporation Digital art undo and redo
CN105658146A (en) * 2013-10-24 2016-06-08 佳能株式会社 Information processing device, information processing method, control device, control system, control method, tomosynthesis image capturing device, X-ray imaging device, image processing device, image processing system, image processing method and computer program
CN105955687A (en) * 2016-04-29 2016-09-21 华为技术有限公司 Image processing method, apparatus and system
CN106293953A (en) * 2015-06-08 2017-01-04 龙芯中科技术有限公司 A kind of method and system accessing shared video data
CN106991007A (en) * 2017-03-31 2017-07-28 青岛大学 A kind of data processing method based on GPU pieces
CN107180405A (en) * 2016-03-10 2017-09-19 阿里巴巴集团控股有限公司 A kind of image processing method, device and intelligent terminal
CN107506261A (en) * 2017-08-01 2017-12-22 北京丁牛科技有限公司 Adapt to the cascade fault-tolerance processing method of CPU, GPU isomeric group
US20190018747A1 (en) * 2016-04-01 2019-01-17 Intel Corporation Method and apparatus periodic snapshotting in a graphics processing environment
CN109448078A (en) * 2018-10-19 2019-03-08 珠海金山网络游戏科技有限公司 A kind of image editing system, method and apparatus

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102810199A (en) * 2012-06-15 2012-12-05 成都平行视野科技有限公司 Image processing method based on GPU (Graphics Processing Unit)
US20140132614A1 (en) * 2012-11-14 2014-05-15 Microsoft Corporation Digital art undo and redo
CN105658146A (en) * 2013-10-24 2016-06-08 佳能株式会社 Information processing device, information processing method, control device, control system, control method, tomosynthesis image capturing device, X-ray imaging device, image processing device, image processing system, image processing method and computer program
CN106293953A (en) * 2015-06-08 2017-01-04 龙芯中科技术有限公司 A kind of method and system accessing shared video data
CN107180405A (en) * 2016-03-10 2017-09-19 阿里巴巴集团控股有限公司 A kind of image processing method, device and intelligent terminal
US20190018747A1 (en) * 2016-04-01 2019-01-17 Intel Corporation Method and apparatus periodic snapshotting in a graphics processing environment
CN105955687A (en) * 2016-04-29 2016-09-21 华为技术有限公司 Image processing method, apparatus and system
CN106991007A (en) * 2017-03-31 2017-07-28 青岛大学 A kind of data processing method based on GPU pieces
CN107506261A (en) * 2017-08-01 2017-12-22 北京丁牛科技有限公司 Adapt to the cascade fault-tolerance processing method of CPU, GPU isomeric group
CN109448078A (en) * 2018-10-19 2019-03-08 珠海金山网络游戏科技有限公司 A kind of image editing system, method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114217976A (en) * 2021-12-23 2022-03-22 北京百度网讯科技有限公司 Task processing method, device, equipment and storage medium
CN114217976B (en) * 2021-12-23 2023-02-28 北京百度网讯科技有限公司 Task processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN109918233B (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN107943577B (en) Method and device for scheduling tasks
CN1873689B (en) Image processing device, method, and storage medium which stores a program
CN110113408A (en) A kind of block synchronous method, equipment and storage medium
CN112527383B (en) Method, apparatus, device, medium, and program for generating a multitasking model
CN106843755A (en) For the data balancing method and device of server cluster
CN1873688B (en) Image processing device, method, and storage medium which stores a program
CN109447406A (en) A kind of method of visioning procedure and the device of visioning procedure
CN114356578B (en) Parallel computing method, device, equipment and medium for natural language processing model
CN106251122A (en) A kind of workflow processing method and device
CN109918233A (en) A kind of data processing method, calculates equipment and storage medium at device
CN110955719A (en) Data access processing equipment, system and method
CN110555732A (en) Marketing strategy pushing method and device and marketing strategy operation platform
CN110888925A (en) Data loading and distributing method and device and storage medium
CN106302125A (en) A kind of solicited message is responded method, Apparatus and system
CN115809126A (en) Job scheduling method and device in mixed deployment scene and electronic equipment
CN104424525B (en) Auxiliary is identified project the method and apparatus of scope
CN114816719A (en) Training method and device of multi-task model
CN111027196B (en) Simulation analysis task processing method and device for power equipment and storage medium
CN109783745B (en) Method, device and computer equipment for personalized typesetting of pages
CN113568736A (en) Data processing method and device
CN105373524A (en) Demonstration text editing method and apparatus
CN111782641A (en) Data error repairing method and system
CN112748833A (en) Interface display method and device and computer readable medium
CN111581093B (en) Method, device, equipment and medium for generating test record list
CN111221725B (en) Automatic testing method and system, readable storage medium and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Patentee after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Address before: Room 102, Room 202, Room 302, Room 402, Room 327, Room 102, Room 202, Room 329, Room 302, No. 325, Qiandao Ring Road, Tangjiawan Town, High-tech Zone

Patentee before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.