CN111242833B - Management method and device of dyeing machine, electronic equipment and storage medium - Google Patents

Management method and device of dyeing machine, electronic equipment and storage medium Download PDF

Info

Publication number
CN111242833B
CN111242833B CN201911421704.5A CN201911421704A CN111242833B CN 111242833 B CN111242833 B CN 111242833B CN 201911421704 A CN201911421704 A CN 201911421704A CN 111242833 B CN111242833 B CN 111242833B
Authority
CN
China
Prior art keywords
state
dyeing machine
program
dyeing
task
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.)
Active
Application number
CN201911421704.5A
Other languages
Chinese (zh)
Other versions
CN111242833A (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.)
Xian Xiangteng Microelectronics Technology Co Ltd
Original Assignee
Xian Xiangteng Microelectronics 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 Xian Xiangteng Microelectronics Technology Co Ltd filed Critical Xian Xiangteng Microelectronics Technology Co Ltd
Priority to CN201911421704.5A priority Critical patent/CN111242833B/en
Publication of CN111242833A publication Critical patent/CN111242833A/en
Application granted granted Critical
Publication of CN111242833B publication Critical patent/CN111242833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a method and a device for managing a dyeing machine, electronic equipment and a storage medium; the method comprises the following steps: receiving an operation request about a dyeing machine, and determining the current target running state of the dyeing machine; the target running state is one of a plurality of preset running states, and each running state corresponds to one or more executable operations related to the dyeing device; and carrying out acceptance processing or rejection processing on the operation indicated by the operation request according to the target running state. The invention can improve the stability of the dyeing device in the running process of the graphic processor.

Description

Management method and device of dyeing machine, electronic equipment and storage medium
Technical Field
The invention belongs to the field of computer graphics, and particularly relates to a method and a device for managing a dyeing machine, electronic equipment and a storage medium.
Background
Programmable dyers, abbreviated as dyers, are key components of graphics processors and can determine the excellence in processing performance of graphics processors.
In the prior art, in order to improve the stability of a shader during the operation of a graphics processor, improvements are generally proposed for the architecture of the shader or the program of the graphics processor on which the operation of the shader depends is optimized.
However, on the premise that the architecture of the shader and the program of the graphics processor have been determined, how to further improve the stability of the shader during the operation of the graphics processor has not been a truly viable solution.
Disclosure of Invention
In order to solve the above problems in the prior art, embodiments of the present invention provide a method, an apparatus, an electronic device, and a storage medium for managing a stainer.
The technical problems to be solved by the invention are realized by the following technical scheme:
in a first aspect, an embodiment of the present invention provides a method for managing a shader, which is applied to a graphics processor, and the method includes:
receiving an operation request about a dyeing machine, and determining the current target running state of the dyeing machine; the target running state is one of a plurality of preset running states, and each running state corresponds to one or more executable operations related to the dyeing device;
and carrying out acceptance processing or rejection processing on the operation indicated by the operation request according to the target running state.
In one embodiment of the invention, the plurality of operating states includes: configuration state, ready state, busy state, idle state, and fault state;
wherein the configuration state is a state in which a stainer and/or a stainer task is configured;
the preparation state is a state when the dyeing machine does not receive the dyeing machine task after the dyeing machine and/or the dyeing machine task are configured;
the busy state is a state when the dyeing machine is running the dyeing machine task;
the idle state is a state when a newly added dyeing machine task is not received after all dyeing machine tasks are run by the dyeing machine;
the fault state is a state that the task of the dyeing machine stops running when the dyeing machine fails to repair.
In one embodiment of the present invention, the performing, according to the target running state, an acceptance process or a rejection process on the operation indicated by the operation request includes:
judging whether the operation indicated by the operation request belongs to an executable operation corresponding to the target running state or not;
if yes, executing the operation indicated by the operation request;
if not, the operation indicated by the operation request is not executed, and feedback information that the operation indicated by the operation request is an abnormal operation is output.
In one embodiment of the present invention, after performing an acceptance process or a rejection process on the operation indicated by the operation request according to the target running state, the method further includes:
and returning to the step of receiving the operation request about the dyeing machine and determining the target running state of the dyeing machine, and continuing to conduct acceptance processing or rejection processing on the operation indicated by the next operation request.
In one embodiment of the present invention, the determining the current target operating state of the dyeing apparatus includes:
and determining the current target running state of the dyeing machine according to the monitoring data of the graphic processor on the dyeing machine.
In one embodiment of the present invention, the executable operations corresponding to the configuration state include: an operation of configuring the stainer and an operation of configuring the stainer task;
the executable operations corresponding to the preparation state comprise: an operation of loading a program to a graphics processor, an operation of unloading a program of a graphics processor, and an operation of switching a program of a graphics processor.
In one embodiment of the present invention, the executable operation corresponding to the busy state includes: counting the operation of the performance of the dyeing device and performing breakpoint debugging operation on the program of the graphic processor;
the executable operations corresponding to the idle state include: unloading the operation of the program of the graphic processor and switching the operation of the program of the graphic processor;
the executable operation corresponding to the fault state comprises the following steps: and (3) handling the faults of the dyeing device.
In a second aspect, an embodiment of the present invention provides a shader management apparatus, applied to a graphics processor, including:
a receiving and determining module for receiving an operation request about the dyeing machine and determining a target running state of the dyeing machine; the target running state is one of a plurality of preset running states, and each running state corresponds to one or more executable operations related to the dyeing device;
and the processing module is used for carrying out acceptance processing or rejection processing on the operation indicated by the operation request according to the target running state.
In one embodiment of the invention, the plurality of operating states includes: configuration state, ready state, busy state, idle state, and fault state;
wherein the configuration state is a state in which a stainer and/or a stainer task is configured;
the preparation state is a state when the dyeing machine does not receive the dyeing machine task after the dyeing machine and/or the dyeing machine task are configured;
the busy state is a state when the dyeing machine is running the dyeing machine task;
the idle state is a state when a newly added dyeing machine task is not received after all dyeing machine tasks are run by the dyeing machine;
the fault state is a state that the task of the dyeing machine stops running when the dyeing machine fails to repair.
In one embodiment of the invention, the determination module is shown, in particular, for:
judging whether the operation indicated by the operation request belongs to an executable operation corresponding to the target running state or not;
if yes, executing the operation indicated by the operation request;
if not, the operation indicated by the operation request is not executed, and feedback information that the operation indicated by the operation request is an abnormal operation is output.
In one embodiment of the invention, the apparatus further comprises: a return module;
the return module is configured to return to the receiving and determining module after the determining module performs, according to the target running state, the acceptance process or rejection process on the operation indicated by the operation request, so that the processing module continues to perform, on the operation indicated by the next operation request, the acceptance process or rejection process.
In one embodiment of the present invention, the receiving and determining module determines a current target operating state of the stainer, including:
and determining the current target running state of the dyeing machine according to the monitoring data of the graphic processor on the dyeing machine.
In one embodiment of the present invention, the executable operations corresponding to the configuration state include: an operation of configuring the stainer and an operation of configuring the stainer task;
the executable operations corresponding to the preparation state comprise: an operation of loading a program to a graphics processor, an operation of unloading a program of a graphics processor, and an operation of switching a program of a graphics processor.
In one embodiment of the present invention, the executable operation corresponding to the busy state includes: counting the operation of the performance of the dyeing device and performing breakpoint debugging operation on the program of the graphic processor;
the executable operations corresponding to the idle state include: unloading the operation of the program of the graphic processor and switching the operation of the program of the graphic processor;
the executable operation corresponding to the fault state comprises the following steps: and (3) handling the faults of the dyeing device.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the method steps of any one of the dyeing machine management methods when executing the program stored in the memory.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium having a computer program stored therein, which when executed by a processor, implements the method steps of any of the above-described methods for managing a stainer.
In yet another aspect of embodiments of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method steps of any of the above-described methods of managing a stainer.
The invention has the beneficial effects that:
in the method for managing the dyeing machine provided by the embodiment of the invention, a plurality of running states are preset, and each running state corresponds to one or more executable operations related to the dyeing machine; when the graphic processor receives an operation request about the dyeing machine, it may be determined to which preset operation state the current target operation state of the dyeing machine belongs, so that an acceptance process or a rejection process is performed on an operation indicated by the operation request according to the target operation state. Thus, for the unacceptable operation in the target running state, rejection processing can be performed, so that the failure of the dyeing device caused by the unacceptable operation performed in the target running state is avoided; therefore, the method for managing the dyeing machine provided by the embodiment of the invention can improve the stability of the dyeing machine in the running process of the graphic processor.
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Drawings
FIG. 1 is a schematic flow chart of a method for managing a dyeing machine according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for managing a stainer according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a management device for a dyeing machine according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to specific examples, but embodiments of the present invention are not limited thereto.
In order to improve the stability of a dyeing machine in the running process of a graphic processor, the embodiment of the invention provides a dyeing machine management method, a dyeing machine management device, electronic equipment and a storage medium. The execution main body of the method for managing the dyeing device provided by the embodiment of the invention can be a graphic processor, and the graphic processor can be applied to electronic equipment. In a specific application, the electronic device may be: desktop computers, portable computers, intelligent mobile terminals, servers, etc. Any electronic device capable of implementing the embodiments of the present invention is not limited herein, and falls within the scope of the embodiments of the present invention.
Firstly, a detailed description will be given of a method for managing a dyeing machine according to an embodiment of the present invention, as shown in fig. 1, the method may include the following steps:
s10: receiving an operation request about a dyeing machine, and determining the current target running state of the dyeing machine;
wherein the target operating state is one of a plurality of preset operating states, and each operating state corresponds to one or more executable operations related to the dyeing device.
In the step, the received operation request may be sent to the graphics processor by the user of the graphics processor through the upper computer corresponding to the graphics processor; the upper computer can be a management client corresponding to the graphic processor; alternatively, the host computer may be any electronic device having a communication connection with the graphics processor, with which a user may send an operation request to the graphics processor in the form of computer instructions.
It will be appreciated that there are a plurality of operating states of the dyers in the graphic processor, and that when the criteria for dividing the operating states are different, there are a plurality of operating states of the dyers in the graphic processor that are different. For convenience of management of the dyers, in an embodiment of the present invention, a plurality of operation states of the dyers in the graphics processor are divided into: configuration state, ready state, busy state, idle state, and fault state. It is understood that these 5 operating states may encompass various operating states of the stainers in the graphics processor.
And, there may be one or more executable operations for each operational state. Illustratively, the executable operations corresponding to the configuration state may include: an operation of configuring the stainer and an operation of configuring the stainer task;
the executable operations corresponding to the preparation state may include: loading the program to the graphics processor, unloading the program of the graphics processor, and switching the program of the graphics processor;
the executable operations corresponding to the busy state may include: counting the operation of the performance of the dyeing device and performing breakpoint debugging operation on a program in the graphic processor;
the executable operations corresponding to the idle state may include: unloading the operation of the program of the graphics processor and switching the operation of the program of the graphics processor;
the executable operations corresponding to the fault state may include: and (3) handling the faults of the dyeing device.
It will be appreciated that the user may configure the stainer or configure the stainer task while the stainer is in the idle state; at this time, the current target running state of the dyeing machine is switched from the idle state to the configuration state. In addition, when the target running state is a fault state, if the fault is processed, the fault of the dyeing device is eliminated, and at this time, the current target running state of the dyeing device is switched from the fault state to other running states, such as a configuration state, a ready state, a busy state or an idle state, and the like.
In addition, it can be appreciated that, since the stainer is in the graphics processor, the status of the stainer is monitored by the graphics processor; thus, when the graphic processor receives an operation request for the dyeing machine, the current target running state of the dyeing machine can be determined according to the monitoring data of the graphic processor on the dyeing machine. For the sake of clarity of the solution and clarity of the layout, the following description will exemplarily describe a specific implementation of determining the current target operating state of the dyeing apparatus according to the monitoring data of the graphic processor on the dyeing apparatus.
S20: and carrying out acceptance processing or rejection processing on the operation indicated by the operation request according to the target running state.
Here, the operation indicated by the operation request is the operation requested to be performed by the operation request, and the operation may be an acceptable executable operation in the target running state or an unacceptable operation in the target running state. Accordingly, the operation indicated by the operation request can be subjected to either the acceptance process or the rejection process according to the target running state.
There are various specific implementation manners of performing an acceptance process or a rejection process on an operation indicated by an operation request according to a target running state. Illustratively, in one implementation, performing the acceptance process or rejection process on the operation indicated by the operation request according to the target running state may include:
judging whether the operation indicated by the operation request belongs to an executable operation corresponding to the target running state;
if yes, executing the operation indicated by the operation request;
if not, the operation indicated by the operation request is not performed.
In another implementation, performing the acceptance process or rejection process on the operation indicated by the operation request according to the target running state may include:
judging whether the operation indicated by the operation request belongs to an executable operation corresponding to the target running state;
if yes, executing the operation indicated by the operation request;
if not, the operation indicated by the operation request is not executed, and feedback information that the operation indicated by the operation request is an abnormal operation is output.
In the method for managing the dyeing machine provided by the embodiment of the invention, a plurality of running states are preset, and each running state corresponds to one or more executable operations related to the dyeing machine; when the graphic processor receives an operation request about the dyeing machine, it may be determined to which preset operation state the current target operation state of the dyeing machine belongs, so that an acceptance process or a rejection process is performed on an operation indicated by the operation request according to the target operation state. Thus, for the unacceptable operation in the target running state, rejection processing can be performed, so that the failure of the dyeing device caused by the unacceptable operation performed in the target running state is avoided; therefore, the method for managing the dyeing machine provided by the embodiment of the invention can improve the stability of the dyeing machine during operation.
In addition, during the entire process of operation of the graphics processor, there may be more than one received operation request for the shader; therefore, in the case where the graphic processor receives a plurality of operation requests, after performing the acceptance process or rejection process on the operation indicated by the operation request according to the target running state in step S20, it is possible to return to step S10 to continue the acceptance process or rejection process on the operation indicated by the next operation request. In this way, each operation request received by the graphics processor can be subjected to corresponding acceptance processing or rejection processing, so that the stability of the dyeing device is ensured in the whole running process of the graphics processor.
It is understood that, when the operation indicated by the operation request is subjected to the acceptance process according to the target running state, the target running state may be changed when returning to step S10. For example, assuming that the target running state is a configuration state, the graphics processor receives an operation indicated by an operation request to configure the dyeing device; then, after the operation indicated by the operation request is performed, the target running state may be changed to the preparation state. At this time, the process returns to step S10, and the determined target operation state is the preparation state. It will also be appreciated that the target operating state is generally unchanged when the operation indicated by the operation request is rejected based on the target operating state.
For clarity of the solution, a specific implementation of determining the current target operating state of the dyeing apparatus according to the monitoring data of the dyeing apparatus by the graphic processor is described below as an example.
For example, when configuring a stainer and/or a stainer task, the stainer is typically in a deactivated state, and the stainer does not begin to perform the stainer task; therefore, when the state that the dyeing machine is in the stop working state is monitored, and the dyeing machine does not execute the dyeing machine task, the current target running state of the dyeing machine can be determined to be a configuration state;
when the dyeing machine is monitored to be in a working state but the task of the dyeing machine is not received, determining that the current target running state of the dyeing machine is in a preparation state;
when the dyeing machine is monitored to be in a working state and the dyeing machine task is being executed, the current target running state of the dyeing machine can be determined to be in a busy state;
when the dyeing machine is monitored to be in a working state and the existing dyeing machine task is executed, determining that the current target running state of the dyeing machine is in an idle state;
when the state that the dyeing machine stops working is monitored, and the fault to be processed is monitored, the current target running state of the dyeing machine can be determined to be the fault state.
Corresponding to the above-mentioned method for managing the dyers, the embodiment of the invention also provides a device for managing the dyers, which is applied to the graphic processor; as shown in fig. 3, the apparatus may include:
a receiving and determining module 301 for receiving an operation request about the dyeing machine and determining a target operation state of the dyeing machine; the target running state is one of a plurality of preset running states, and each running state corresponds to one or more executable operations related to the dyeing device;
and the processing module 302 is configured to perform an acceptance process or a rejection process on the operation indicated by the operation request according to the target running state.
Optionally, the plurality of operating states includes: configuration state, ready state, busy state, idle state, and fault state;
wherein the configuration state is a state in which a stainer and/or a stainer task is configured;
the preparation state is a state when the dyeing machine does not receive the dyeing machine task after the dyeing machine and/or the dyeing machine task are configured;
the busy state is a state when the dyeing machine is running the dyeing machine task;
the idle state is a state when a newly added dyeing machine task is not received after all dyeing machine tasks are run by the dyeing machine;
the fault state is a state that the task of the dyeing machine stops running when the dyeing machine fails to repair.
Optionally, the illustrated determining module 302 is specifically configured to:
judging whether the operation indicated by the operation request belongs to an executable operation corresponding to the target running state or not;
if yes, executing the operation indicated by the operation request;
if not, the operation indicated by the operation request is not executed, and feedback information that the operation indicated by the operation request is an abnormal operation is output.
Optionally, the apparatus further comprises: a return module;
the return module is configured to return to the receiving and determining module after the determining module performs, according to the target running state, the acceptance process or rejection process on the operation indicated by the operation request, so that the processing module continues to perform, on the operation indicated by the next operation request, the acceptance process or rejection process.
Optionally, the receiving and determining module 301 determines a current target operating state of the dyeing apparatus, including:
and determining the current target running state of the dyeing machine according to the monitoring data of the graphic processor on the dyeing machine.
Optionally, the executable operation corresponding to the configuration state includes: an operation of configuring the stainer and an operation of configuring the stainer task;
the executable operations corresponding to the preparation state comprise: an operation of loading a program to a graphics processor, an operation of unloading a program of a graphics processor, and an operation of switching a program of a graphics processor.
Optionally, the executable operation corresponding to the busy state includes: counting the operation of the performance of the dyeing device and performing breakpoint debugging operation on the program of the graphic processor;
the executable operations corresponding to the idle state include: unloading the operation of the program of the graphic processor and switching the operation of the program of the graphic processor;
the executable operation corresponding to the fault state comprises the following steps: and (3) handling the faults of the dyeing device.
The management device of the dyeing machine provided by the embodiment of the invention is provided with a plurality of running states in advance, and each running state corresponds to one or more executable operations related to the dyeing machine; when the graphic processor receives an operation request about the dyeing machine, it may be determined to which preset operation state the current target operation state of the dyeing machine belongs, so that an acceptance process or a rejection process is performed on an operation indicated by the operation request according to the target operation state. Thus, for the unacceptable operation in the target running state, rejection processing can be performed, so that the failure of the dyeing device caused by the unacceptable operation performed in the target running state is avoided; therefore, the device for managing the dyeing machine provided by the embodiment of the invention can improve the stability of the dyeing machine in the running process of the graphic processor.
The embodiment of the invention also provides an electronic device, as shown in fig. 4, which comprises a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 complete communication with each other through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401 is configured to implement any of the method steps described in the above-described method for managing a dyeing machine when executing the program stored in the memory 403.
Preferably, the processor 601 may be a graphics processor in particular.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The invention also provides a computer readable storage medium. The computer-readable storage medium stores a computer program which, when executed by a processor, implements the method steps described in any one of the above-described methods for managing a dye.
Alternatively, the computer readable storage medium may be a Non-Volatile Memory (NVM), such as at least one disk Memory.
Optionally, the computer readable memory may also be at least one memory device located remotely from the aforementioned processor.
In a further embodiment of the invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method steps of any of the above-described methods of managing a stainer.
It should be noted that, for the apparatus/electronic device/storage medium/computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference should be made to the description of the method embodiments in part.
It should be noted that the terms "first," "second," and "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implying a number of technical features being indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more features. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Further, one skilled in the art can engage and combine the different embodiments or examples described in this specification.
Although the present application has been described herein in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from a review of the figures, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing is a further detailed description of the invention in connection with the preferred embodiments, and it is not intended that the invention be limited to the specific embodiments described. It will be apparent to those skilled in the art that several simple deductions or substitutions may be made without departing from the spirit of the invention, and these should be considered to be within the scope of the invention.

Claims (6)

1. A method of managing a shader, applied to a graphics processor, the method comprising:
receiving an operation request about a dyeing machine, and determining the current target running state of the dyeing machine; the target running state is one of a plurality of preset running states, and each running state corresponds to one or more executable operations related to the dyeing device;
performing acceptance processing or rejection processing on the operation indicated by the operation request according to the target running state;
the plurality of operating states includes: configuration state, ready state, busy state, idle state, and fault state; wherein the configuration state is a state in which a stainer and/or a stainer task is configured; the preparation state is a state when the dyeing machine does not receive the dyeing machine task after the dyeing machine and/or the dyeing machine task are configured; the busy state is a state when the dyeing machine is running the dyeing machine task; the idle state is a state when a newly added dyeing machine task is not received after all dyeing machine tasks are run by the dyeing machine; the fault state is a state that when the non-repairable fault occurs to the dyeing machine, the task of the dyeing machine stops running;
and performing acceptance processing or rejection processing on the operation indicated by the operation request according to the target running state, wherein the acceptance processing or rejection processing comprises the following steps:
judging whether the operation indicated by the operation request belongs to an executable operation corresponding to the target running state or not;
if yes, executing the operation indicated by the operation request;
if not, not executing the operation indicated by the operation request, and outputting feedback information that the operation indicated by the operation request is abnormal operation;
the executable operation corresponding to the configuration state comprises the following steps: an operation of configuring the stainer and an operation of configuring the stainer task;
the executable operations corresponding to the preparation state comprise: loading the program to the graphics processor, unloading the program of the graphics processor, and switching the program of the graphics processor;
the executable operation corresponding to the busy state comprises the following steps: counting the operation of the performance of the dyeing device and performing breakpoint debugging operation on the program of the graphic processor;
the executable operations corresponding to the idle state include: unloading the operation of the program of the graphic processor and switching the operation of the program of the graphic processor;
the executable operation corresponding to the fault state comprises the following steps: and (3) handling the faults of the dyeing device.
2. The method of claim 1, wherein after accepting or rejecting the operation indicated by the operation request according to the target running state, the method further comprises:
and returning to the step of receiving the operation request about the dyeing machine and determining the target running state of the dyeing machine, and continuing to conduct acceptance processing or rejection processing on the operation indicated by the next operation request.
3. The method of claim 1, wherein determining the current target operational state of the stainer comprises:
and determining the current target running state of the dyeing machine according to the monitoring data of the graphic processor on the dyeing machine.
4. A shader management device, for use with a graphics processor, the device comprising:
a receiving and determining module for receiving an operation request about the dyeing machine and determining a target running state of the dyeing machine; the target running state is one of a plurality of preset running states, and each running state corresponds to one or more executable operations related to the dyeing device;
the processing module is used for carrying out acceptance processing or rejection processing on the operation indicated by the operation request according to the target running state;
the plurality of operating states includes: configuration state, ready state, busy state, idle state, and fault state; wherein the configuration state is a state in which a stainer and/or a stainer task is configured; the preparation state is a state when the dyeing machine does not receive the dyeing machine task after the dyeing machine and/or the dyeing machine task are configured; the busy state is a state when the dyeing machine is running the dyeing machine task; the idle state is a state when a newly added dyeing machine task is not received after all dyeing machine tasks are run by the dyeing machine; the fault state is a state that when the non-repairable fault occurs to the dyeing machine, the task of the dyeing machine stops running;
and performing acceptance processing or rejection processing on the operation indicated by the operation request according to the target running state, wherein the acceptance processing or rejection processing comprises the following steps:
judging whether the operation indicated by the operation request belongs to an executable operation corresponding to the target running state or not;
if yes, executing the operation indicated by the operation request;
if not, not executing the operation indicated by the operation request, and outputting feedback information that the operation indicated by the operation request is abnormal operation;
the executable operation corresponding to the configuration state comprises the following steps: an operation of configuring the stainer and an operation of configuring the stainer task;
the executable operations corresponding to the preparation state comprise: loading the program to the graphics processor, unloading the program of the graphics processor, and switching the program of the graphics processor;
the executable operation corresponding to the busy state comprises the following steps: counting the operation of the performance of the dyeing device and performing breakpoint debugging operation on the program of the graphic processor;
the executable operations corresponding to the idle state include: unloading the operation of the program of the graphic processor and switching the operation of the program of the graphic processor;
the executable operation corresponding to the fault state comprises the following steps: and (3) handling the faults of the dyeing device.
5. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-3 when executing a program stored on a memory.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-3.
CN201911421704.5A 2019-12-31 2019-12-31 Management method and device of dyeing machine, electronic equipment and storage medium Active CN111242833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911421704.5A CN111242833B (en) 2019-12-31 2019-12-31 Management method and device of dyeing machine, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911421704.5A CN111242833B (en) 2019-12-31 2019-12-31 Management method and device of dyeing machine, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111242833A CN111242833A (en) 2020-06-05
CN111242833B true CN111242833B (en) 2023-05-26

Family

ID=70865362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911421704.5A Active CN111242833B (en) 2019-12-31 2019-12-31 Management method and device of dyeing machine, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111242833B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166617A1 (en) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 Terminal control method and apparatus, and electronic device
CN109861979A (en) * 2018-12-28 2019-06-07 努比亚技术有限公司 Program processing method, electronic equipment and computer readable storage medium
CN110490247A (en) * 2019-03-08 2019-11-22 腾讯科技(深圳)有限公司 Image processing model generation method, image processing method and device, electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166617A1 (en) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 Terminal control method and apparatus, and electronic device
CN109861979A (en) * 2018-12-28 2019-06-07 努比亚技术有限公司 Program processing method, electronic equipment and computer readable storage medium
CN110490247A (en) * 2019-03-08 2019-11-22 腾讯科技(深圳)有限公司 Image processing model generation method, image processing method and device, electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
史少旭 ; 韩俊刚 ; 刘欢 ; .图形处理器中双核顶点染色器的设计与实现.微电子学与计算机.2017,(第02期),全文. *

Also Published As

Publication number Publication date
CN111242833A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN109814910A (en) Automate gray scale dissemination method, device, computer system and storage medium
CN106534287B (en) A kind of management method and device of session entry
EP3522449B1 (en) Service state transition method and device
US8661293B2 (en) Test architecture based on intelligent test sequence
CN111242833B (en) Management method and device of dyeing machine, electronic equipment and storage medium
CN111651350B (en) Test case processing method, device, equipment and computer readable storage medium
CN115656788B (en) Chip testing system, method, equipment and storage medium
JP2019160270A (en) Method, device, server, and program for checking defective function
CN112052070A (en) Application containerization evaluation method and device, electronic equipment and storage medium
EP4155942A2 (en) Method and apparatus for load testing, and corresponding storage medium
CN116126719A (en) Interface testing method and device, electronic equipment and storage medium
CN111597093A (en) Exception handling method, device and equipment
CN111737065A (en) Demand model based on server interface test and interface test method and system
CN111414201A (en) PCIe card loading method, device, equipment and storage medium
CN110134502A (en) Task processing method, device, system, computer equipment and storage medium
CN111078543B (en) System dynamic test method and test device
CN111090574B (en) Regression testing method, device and storage medium
CN109308230B (en) Backup method and device
CN109901959B (en) Pressure measurement method, system, terminal and storage medium for AEP memory under mix mode
US11301249B2 (en) Handling exceptions in a program
CN112766768B (en) Contract flow management method and device, electronic equipment and readable storage medium
CN110716830B (en) Pressure measuring machine selection method and device, electronic equipment and storage medium
US11163667B2 (en) Method and apparatus for error ticket management
CN110347584B (en) Method and device for testing and adjusting credit card policy package, electronic equipment and medium
CN106776278B (en) DSP (digital signal processor) debugging method and device based on dual-core architecture

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