Fault detection method and device for graphics processor, equipment, storage medium and program product
By acquiring the rasterized files of the graphics processor to generate detection images and performing fault detection, the problem of low fault detection efficiency in the prior art is solved, and more efficient fault location is achieved.
Patent Information
- Application Number
- CN202411706149.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2044-11-26
AI Technical Summary
In the prior art, when an abnormality occurs when a graphics processor renders an image, the fault detection efficiency is low, and it is necessary to check the signal waveforms of each processing stage step by step.
By acquiring the rasterization file output by the rasterization unit, a detection image is generated, and a fault detection of the rasterization unit is performed on the detected image, a first detection result is obtained, and then the other units are detected based on the first detection result to obtain the target detection result.
This method can quickly determine whether the grating unit has a fault, improve the efficiency of fault detection, and solve the problem of inefficiency caused by relying on a large number of signal waveforms for fault detection in traditional technology.
Smart Images

Figure CN119540211A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of graphics processor technology, and in particular to a graphics processor fault detection method, device, equipment, storage medium and program product. Background Art
[0002] With the rapid development of computer technology, rendering technology based on graphics processing units (GPUs) has been widely used in many fields, including 3D animation production, video game development, and autonomous driving systems. As the core process for implementing 3D model rendering, the graphics pipeline has a complex structure and consists of multiple closely connected processing stages. Each stage is responsible for specific graphics operations, such as vertex processing, rasterization, texture mapping, and pixel processing, and ultimately presents the 3D model as a 2D image that we can perceive. In order to ensure the accuracy and reliability of graphics processor rendering technology, it is very necessary to accurately detect faults when the images rendered by the graphics pipeline are abnormal.
[0003] Currently, when an image rendered by a graphics pipeline is abnormal, the signal waveforms corresponding to each processing stage of the graphics pipeline are usually checked step by step to perform fault detection. However, the above fault detection method has the problem of low efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a graphics processor fault detection method, device, equipment, storage medium and program product that can improve the fault detection efficiency of the graphics processor in response to the above technical problems.
[0005] In a first aspect, the present application provides a method for detecting a fault of a graphics processor, the method comprising:
[0006] When it is detected that the target image output by the image output unit in the graphics processor is abnormal, obtaining a rasterization file output by the rasterization unit in the graphics processor;
[0007] Generate a detection image according to the rasterization file, and perform fault detection on the rasterization unit according to the detection image to obtain a first detection result;
[0008] Other units in the graphics processor are detected according to the first detection result to obtain a target detection result.
[0009] In one embodiment, detecting other units in the graphics processor according to the first detection result to obtain the target detection result includes:
[0010] If the first detection result indicates that the rasterization unit is in a normal working state, determining that the target detection result indicates that the image output unit in the graphics processor is faulty;
[0011] If the first detection result indicates that the rasterization unit is in a potential abnormal state, a fault detection is performed on the rasterization unit according to the signal waveform output by the rasterization unit to obtain a second detection result, and other units are detected according to the second detection result to obtain a target detection result.
[0012] In one embodiment, detecting other units according to the second detection result to obtain the target detection result includes:
[0013] If the second detection result indicates that the rasterization unit is in a normal working state, the other units are detected according to the signal waveforms output by the other units to obtain the target detection result;
[0014] If the second detection result indicates that the rasterization unit is in an abnormal working state, it is determined that the target detection result indicates that the rasterization unit in the graphics processor is faulty.
[0015] In one embodiment, the other units include a subdivision processing unit, an input loading unit, and an image output unit, and the other units are detected according to the signal waveforms output by the other units to obtain target detection results, including:
[0016] Detecting the subdivision processing unit according to the signal waveform output by the subdivision processing unit to obtain a third detection result;
[0017] When the third detection result indicates that the subdivision processing unit is in a normal working state, the input loading unit is detected according to the signal waveform output by the input loading unit to obtain a fourth detection result;
[0018] If the fourth detection result indicates that the input loading unit is in a normal working state, it is determined that the target detection result indicates that there is a fault in the image output unit.
[0019] In one embodiment, obtaining a rasterized file output by a rasterization unit in a graphics processor includes:
[0020] Obtaining coordinate information and attribute information output by each rasterization sub-unit in the rasterization unit;
[0021] A rasterization file is generated according to the coordinate information and attribute information output by each rasterization sub-unit.
[0022] In one embodiment, performing fault detection on a rasterization unit according to a detection image to obtain a first detection result includes:
[0023] Determine whether the detected image is consistent with the standard image;
[0024] If the detected image is consistent with the standard image, determining that the first detection result indicates that the rasterization unit is in a normal working state;
[0025] If the detection image is inconsistent with the standard image, it is determined that the first detection result indicates that the rasterization unit is in a potential abnormal state.
[0026] In a second aspect, the present application further provides a graphics processor fault detection device, the device comprising:
[0027] An acquisition module, used for acquiring a rasterization file output by a rasterization unit in the graphics processor when detecting that an abnormality exists in a target image output by an image output unit in the graphics processor;
[0028] A first detection module, used to generate a detection image according to the rasterization file, and perform fault detection on the rasterization unit according to the detection image to obtain a first detection result;
[0029] The second detection module is used to detect other units in the graphics processor according to the first detection result to obtain a target detection result.
[0030] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0031] When it is detected that the target image output by the image output unit in the graphics processor is abnormal, obtaining a rasterization file output by the rasterization unit in the graphics processor;
[0032] Generate a detection image according to the rasterization file, and perform fault detection on the rasterization unit according to the detection image to obtain a first detection result;
[0033] Other units in the graphics processor are detected according to the first detection result to obtain a target detection result.
[0034] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0035] When it is detected that the target image output by the image output unit in the graphics processor is abnormal, obtaining a rasterization file output by the rasterization unit in the graphics processor;
[0036] Generate a detection image according to the rasterization file, and perform fault detection on the rasterization unit according to the detection image to obtain a first detection result;
[0037] Other units in the graphics processor are detected according to the first detection result to obtain a target detection result.
[0038] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0039] When it is detected that the target image output by the image output unit in the graphics processor is abnormal, obtaining a rasterization file output by the rasterization unit in the graphics processor;
[0040] Generate a detection image according to the rasterization file, and perform fault detection on the rasterization unit according to the detection image to obtain a first detection result;
[0041] Other units in the graphics processor are detected according to the first detection result to obtain a target detection result.
[0042] The above-mentioned fault detection method, device, equipment, storage medium and program product of the graphics processor, the method obtains the rasterization file output by the rasterization unit in the graphics processor when the target image output by the image output unit in the graphics processor is detected to be abnormal, then generates a detection image according to the rasterization file, and performs fault detection on the rasterization unit according to the detection image to obtain a first detection result, and then detects other units in the graphics processor according to the first detection result to obtain a target detection result. In the above-mentioned method, since the rasterization file output by the rasterization unit already has the preliminary form of the image, the rasterization file can be generated into a detection image, and the detection image can be used to perform fault detection on the rasterization unit, so that it can quickly determine whether the rasterization unit has a fault, thereby improving the efficiency of fault detection, and solving the problem of low efficiency caused by relying on a large number of signal waveforms for fault detection in traditional technologies. In addition, the method uses the rasterization unit as a demarcation point, and by determining the fault condition of the rasterization unit, it can quickly detect the fault of the image output unit. Compared with the method of performing fault detection step by step in traditional technologies, this method can significantly improve the efficiency of fault detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of a graphics pipeline of a graphics processor in the prior art;
[0044] Figure 2 is an internal structure diagram of a computer device in one embodiment;
[0045] Figure 3 is a flowchart of a method for detecting a fault of a graphics processor in another embodiment;
[0046] Figure 4is a flowchart of a method for detecting a fault of a graphics processor in another embodiment;
[0047] Figure 5 is a flowchart of a method for detecting a fault of a graphics processor in another embodiment;
[0048] Figure 6 is a flowchart of a method for detecting a fault of a graphics processor in another embodiment;
[0049] Figure 7 is a flowchart of a method for detecting a fault of a graphics processor in another embodiment;
[0050] Figure 8 is a structural block diagram of a rasterization unit in a graphics processor in one embodiment;
[0051] Fig. 9 is a flowchart of a method for detecting a fault of a graphics processor in another embodiment;
[0052] Fig.10 is a flowchart of a method for detecting a fault of a graphics processor in another embodiment;
[0053] Fig.11 FIG. 4 is a structural block diagram of a fault detection device for a graphics processor in an embodiment. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0055] With the rapid development of computer technology, rendering technology based on graphics processing unit (GPU) has been widely used in many fields, including 3D animation production, video game development, and autonomous driving systems. As the core process for realizing three-dimensional model rendering, the graphics pipeline has a complex structure and consists of multiple closely connected processing stages. Each stage is responsible for specific graphics operations, such as vertex processing, rasterization, texture mapping, and pixel processing, and finally presents the three-dimensional model as a two-dimensional image that we can perceive. Figure 1As shown in the figure, the processing stages of the graphics pipeline include IA (Input Assembler), VS (Vertex Shader), HS (HullShader), TS (Tessellation Shader), DS (Domain Shader), GS (Geometry Shader), RS (Rasterizer), PS (Pixel Shader), and OM (Output Merger) stages, among which IA is used to assemble the input source data (Resources, such as vertex data) into basic graphics elements, VS is used to transform and process each vertex, such as model view projection transformation, HS is used to define the outer contour of the graphics and generate more complex geometric figures, TS is used to refine the details of the geometric figures and generate more vertices, DS is used to process the refined vertex data for further processing and calculation, GS is used to process basic graphics elements, generate more vertices or discard some vertices, RS is used to convert vertices into fragments (pixels) and perform clipping, PS is used to process the color and texture of each fragment, and OM is used to merge all processed data to generate the final frame buffer content. In order to ensure the accuracy and reliability of graphics processor rendering technology, it is very necessary to accurately detect faults when an image rendered by a graphics pipeline is abnormal. At present, when an image rendered by a graphics pipeline is abnormal, the signal waveforms corresponding to each processing stage of the graphics pipeline are usually checked step by step to perform fault detection. However, the above fault detection method has the problem of low efficiency.
[0056] The present application provides a method for detecting a fault in a graphics processor, aiming to solve the above technical problems. The following embodiments will specifically illustrate the method for detecting a fault in a graphics processor described in the present application.
[0057] The graphics processor fault detection method provided in the embodiment of the present application can be applied to Figure 2 In the computer device shown in the figure, the computer device can be a terminal or a server, and its internal structure diagram can be as shown in FIG. Figure 2As shown, the computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a fault detection method of a graphics processor is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0058] Those skilled in the art will understand that Figure 2 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0059] In one embodiment, Figure 3 As shown, a method for detecting a fault in a graphics processor is provided. Figure 1 The computer device in the example is used to illustrate, including the following steps:
[0060] S201, when it is detected that an abnormality exists in a target image output by an image output unit in a graphics processor, a rasterization file output by a rasterization unit in the graphics processor is obtained.
[0061] The graphics pipeline includes IA, VS, HS, TS, DS, GS, RS, PS, and OM, of which IA, TS, RS, and OM are hardware functional units, and VS, HS, DS, GS, and PS are software functional units. Under normal circumstances, when the image output by the graphics processor is abnormal, it is generally caused by a hardware functional unit failure. Therefore, in the embodiment of the present application, it is assumed that the software functional unit is normal, and a method for fault detection for the hardware functional unit is proposed. The working process of the image output unit corresponds to Figure 1 The working process of the rasterization unit corresponds to the OM stage in Figure 1 The RS stage in the RS. The rasterization file is the file / log generated in the RS stage, which can be a csv file for subsequent fault analysis. The target image is the image output by the GPU, which is an image generated by the graphics pipeline, and can be a bmp image. The output of the unit before RS is the primitive signal, and the output of RS is the pixel signal.
[0062] In the embodiment of the present application, a graphics processor is pre-installed in a computer device, and a variety of functional units are designed in the graphics processor, and the working condition of the graphics processor can be detected by the computer device. The computer device can obtain the desired image in advance, and the specific acquisition method can be generated by a C language model, or by other algorithm models, or by receiving a ready-made image input by a user.
[0063] After receiving the target image output by the image output unit in the graphics processor, the computer device can compare the target image with the expected image to determine whether the target image and the expected image are consistent. If the target image and the expected image are consistent, the target image is determined to be normal. If the target image and the expected image are inconsistent, the target image is determined to be abnormal. Optionally, if the computer device does not obtain the target image within a preset time period, the target image is determined to be abnormal. When the computer device detects that the target image is abnormal, it can first determine whether the previous level hardware function unit connected to the image output unit fails, and then perform fault detection on the graphics processor according to the fault condition of the previous level hardware function unit. Specifically, after determining that the previous level hardware function unit is a rasterization unit, the computer device can further obtain the rasterization file generated by the rasterization unit in the graphics pipeline stage.
[0064] Optionally, a user interface is provided on the computer device, and the user interface includes a result display window, a fault detection button, a fault detection window, etc. Among them, the result display window is used to display the target image, and display abnormal prompt information when the target image is abnormal; the fault detection window includes all functional unit components, which can be a functional unit list or a functional unit frame, and the processing records of all functional units are associated with the corresponding functional unit list or functional unit frame, wherein the processing records of IA and TS include a large number of primitive signals, the processing records of RS include a large number of pixel signals and rasterized files, and OM includes a large number of pixel signals and images; when the computer device detects that the target image is abnormal, the abnormal prompt information can be displayed on the user interface. After receiving the abnormal alarm prompt, the user can click the fault detection button. After receiving the fault detection button triggered by the user, the computer device can pop up all functional unit components, and the user can select the functional unit component to be detected. After receiving the user's selection instruction, the computer device can determine the target functional unit component according to the selection instruction, and then obtain the processing record of the target functional unit. Optionally, the computer can predetermine the target functional unit component, and when the computer device detects that the target image is abnormal, the abnormal prompt information can be displayed on the user interface. After receiving the abnormal alarm prompt, the user can click the fault detection button. After receiving the fault detection button triggered by the user, the computer device directly obtains the processing record of the target functional unit component. For example, if the target functional unit component is a rasterization unit, the computer device can directly obtain the rasterization file after receiving the fault detection button triggered by the user.
[0065] S202, generating a detection image according to the rasterization file, and performing fault detection on the rasterization unit according to the detection image to obtain a first detection result.
[0066] The detection image is an image generated by a method different from the graphics pipeline, and is used for fault detection of the rasterization unit, and can be a bmp picture. The first detection result includes that the rasterization unit is in a normal working state or the rasterization unit is in a potential abnormal state.
[0067] In an embodiment of the present application, an image generation script may be pre-designed, and the image generation logic of the preset script is different from the image generation logic in the graphics pipeline. After the computer device obtains the rasterization file based on the above steps, the preset script may be called, and then the preset script may be executed to generate a detection image according to the rasterization file. After the computer device generates the detection image, it may be determined whether the detection image meets the preset requirements. If the detection image meets the preset requirements, the first detection result is determined as the rasterization unit is in a normal working state. If the detection image does not meet the preset requirements, the first detection result is determined as the rasterization unit is in a potential abnormal state.
[0068] S203, detecting other units in the graphics processor according to the first detection result to obtain a target detection result.
[0069] The other units include IA, TS and OM. The target detection result includes one of IA being in a normal or abnormal state, TS being in a normal or abnormal state, RS being in a normal or abnormal state, and OM being in a normal or abnormal state.
[0070] In the embodiment of the present application, after the computer device obtains the first detection result based on the above steps, it can first determine the working state of the rasterization unit according to the first detection result, then determine the working state of the image output unit, and then further determine the working state of other functional units. Optionally, the detection of other units in the graphics processor can also be realized by human-computer interaction. Specifically, the computer can pre-set the detection order of the functional unit components of the device. After receiving the fault detection button triggered by the user, the computer device directly uses the above detection method to perform fault detection according to the detection order and displays the target detection result. Optionally, after receiving the fault detection button triggered by the user, the computer device can pop up all the functional unit components, the user can select the functional unit component to be detected, and then perform the detection of the functional unit, and display the detection result, and the user can repeat the above steps to detect all the functional units. Optionally, when the computer device detects that the target image is abnormal, the abnormal prompt information can be displayed on the user interface. After receiving the abnormal alarm prompt, the user can click the fault detection button, and the computer device can execute the above S201-S203 steps with one key to obtain and display the target detection result on the user interface.
[0071] The fault detection method of the graphics processor provided by the embodiment of the present application, when detecting that the target image output by the image output unit in the graphics processor is abnormal, obtains the rasterization file output by the rasterization unit in the graphics processor, then generates a detection image according to the rasterization file, performs fault detection on the rasterization unit according to the detection image, obtains a first detection result, and then detects other units in the graphics processor according to the first detection result to obtain a target detection result. In the above method, since the rasterization file output by the rasterization unit already has the preliminary form of the image (converted from the primitive signal to the pixel signal), the rasterization file can be used to generate a detection image, and the detection image can be used to perform fault detection on the rasterization unit, so that it can quickly determine whether the rasterization unit has a fault, thereby improving the efficiency of fault detection, and solving the problem of low efficiency caused by relying on a large number of signal waveforms for fault detection in traditional technology. In addition, the method uses the rasterization unit as a demarcation point, and by determining the fault condition of the rasterization unit, it can quickly detect the fault of the image output unit. Compared with the method of performing fault detection step by step in traditional technology, this method can significantly improve the efficiency of fault detection.
[0072] In one embodiment, a specific implementation method for detecting other units according to the second detection result is also provided, such as Figure 4 As shown, the above step S203 of “detecting other units according to the second detection result to obtain the target detection result” includes:
[0073] S301: If the first detection result indicates that the rasterization unit is in a normal working state, determining that the target detection result indicates that the image output unit in the graphics processor is faulty.
[0074] In an embodiment of the present application, if the first detection result indicates that the rasterization unit is in a normal working state, this situation indicates that the rasterization unit and the functional units before it are normal, that is, IA and TS are not faulty, then it can be determined that there is a fault in the image output unit after the rasterization unit, that is, an OM fault.
[0075] S302, if the first detection result indicates that the rasterization unit is in a potential abnormal state, a fault detection is performed on the rasterization unit according to the signal waveform output by the rasterization unit to obtain a second detection result, and other units are detected according to the second detection result to obtain a target detection result.
[0076] The second detection result includes that the rasterization unit is in a normal working state or an abnormal working state. The signal waveform is used to reflect the working state of the unit itself, and the signal waveform output by the rasterization unit is generated by a large number of pixel signals in the RS processing record.
[0077] In the embodiment of the present application, if the first detection result indicates that the rasterization unit is in a potential abnormal state, this situation indicates that all functional units in the graphics pipeline may be abnormal, that is, IA, TS, RS or OM may fail, so the rasterization unit may be normal or abnormal, so it is necessary to further perform fault detection based on the signal waveform. Specifically, after determining that the first detection result indicates that the rasterization unit is in a potential abnormal state, the computer device can obtain the processing record of the rasterization unit. The acquisition method can be executed in the background as described above by the computer, or it can be implemented through user interaction through the user interface. After obtaining the processing record of the rasterization unit, the computer device can directly extract the signal waveform in the processing record, and then compare the signal waveform with the expected waveform to determine the detection result. If the signal waveform is consistent with the expected waveform, if the signal waveform is consistent with the expected waveform, it is determined that the rasterization unit is in a normal working state. If the signal waveform is inconsistent with the expected waveform, or the signal waveform cannot be generated, it is determined that the rasterization unit is in an abnormal working state. After the computer device obtains the second detection result, it can detect other units according to the second detection result to obtain the target detection result. Optionally, after obtaining the processing record of the rasterization unit, the computer device can extract the input signal and the output signal of the rasterization unit, and then generate a signal waveform according to the input signal and the output signal, and determine the second detection result according to the signal waveform.
[0078] Specifically, Figure 5 As shown, the "detecting other units according to the second detection result to obtain the target detection result" in the above step S302 includes:
[0079] S401: If the second detection result indicates that the rasterization unit is in a normal working state, other units are detected according to the signal waveforms output by other units to obtain a target detection result.
[0080] Among them, the signal waveforms output by other units include the signal waveform output by IA, the signal waveform output by TS and the signal waveform output by OM. The signal waveform output by IA is generated by a large number of primitive signals in the IA processing record, the signal waveform output by TS is generated by a large number of primitive signals in the TS processing record, and the signal waveform output by OM is generated by a large number of pixel signals in the OM processing record.
[0081] In the embodiment of the present application, if the second detection result indicates that the rasterization unit is in a normal working state, this situation indicates that the rasterization unit has not failed, so the failed unit may be other units, that is, IA, TS or OM may be faulty. Therefore, it is necessary to detect other units according to the signal waveforms output by other units to obtain the target detection results. When detecting other units, the order of IA, TS or OM is not limited, and the order can be TS-IA-OM, OM-TS-IA, or other orders.
[0082] The following takes the detection sequence of TS-IA-OM as an example to perform fault detection. Figure 6 As shown, the above step S301 of “detecting other units according to the signal waveforms output by other units to obtain target detection results” includes:
[0083] S4011, detecting the subdivision processing unit according to the signal waveform output by the subdivision processing unit to obtain a third detection result.
[0084] Among them, the subdivision processing unit is TS.
[0085] In an embodiment of the present application, after determining that the second detection result indicates that the rasterization unit is in a normal working state, the computer device can obtain the processing record of the subdivision processing unit. The acquisition method can be executed in the background as described above by the computer, or can be implemented by user interaction through a user interface. After obtaining the processing record of the subdivision processing unit, the computer device can directly extract the signal waveform in the processing record, and then compare the signal waveform with the expected waveform to determine the detection result. If the signal waveform is consistent with the expected waveform, if the signal waveform is consistent with the expected waveform, it is determined that the subdivision processing unit is in a normal working state. If the signal waveform is inconsistent with the expected waveform, or the signal waveform cannot be generated, it is determined that the subdivision processing unit is in an abnormal working state. After the computer device obtains the third detection result, it can detect other units according to the third detection result to obtain the target detection result. Optionally, after obtaining the processing record of the subdivision processing unit, the computer device can extract the input signal and output signal of the subdivision processing unit, and then generate a signal waveform according to the input signal and the output signal, and determine the third detection result according to the signal waveform. If the third detection result indicates that the subdivision processing unit is in an abnormal working state, it is determined that the subdivision processing unit has a fault.
[0086] S4012: When the third detection result indicates that the subdivision processing unit is in a normal working state, the input loading unit is detected according to the signal waveform output by the input loading unit to obtain a fourth detection result.
[0087] Among them, the input loading unit is IA.
[0088] In the embodiment of the present application, if the third detection result indicates that the subdivision processing unit is in a normal working state, this situation indicates that the TS is not faulty, then the faulty unit may be IA or OM, so it is necessary to detect the input loading unit according to the signal waveform output by the input loading unit. Specifically, the computer device can obtain the processing record of the input loading unit, and the acquisition method can be executed in the background as described above by the computer, or it can be implemented by user interaction through the user interface. After obtaining the processing record of the input loading unit, the computer device can directly extract the signal waveform in the processing record, and then compare the signal waveform with the expected waveform to determine the detection result. If the signal waveform is consistent with the expected waveform, if the signal waveform is consistent with the expected waveform, it is determined that the input loading unit is in a normal working state. If the signal waveform is inconsistent with the expected waveform, or the signal waveform cannot be generated, it is determined that the input loading unit is in an abnormal working state. After the computer device obtains the fourth detection result, it can detect other units according to the fourth detection result to obtain the target detection result. Optionally, after obtaining the processing record of the input loading unit, the computer device can extract the input signal and output signal of the input loading unit, and then generate a signal waveform according to the input signal and the output signal, and determine the fourth detection result according to the signal waveform. If the fourth detection result indicates that the input loading unit is in an abnormal working state, it is determined that the input loading unit fails.
[0089] S4013: If the fourth detection result indicates that the input loading unit is in a normal working state, it is determined that the target detection result indicates that the image output unit is faulty.
[0090] Among them, the image output unit is OM.
[0091] In the embodiment of the present application, if the fourth detection result indicates that the input loading unit is in a normal working state, which indicates that the input loading unit is not faulty, then it can be determined that the image output unit is faulty.
[0092] S402: If the second detection result indicates that the rasterization unit is in an abnormal working state, determine that the target detection result indicates that the rasterization unit in the graphics processor is faulty.
[0093] In the embodiment of the present application, if the second detection result indicates that the rasterization unit is in an abnormal working state, it is determined that the target detection result indicates that there is a fault in the rasterization unit in the graphics processor.
[0094] The method described in the embodiment of the present application first checks the rasterization unit when an abnormality is detected in the target image. If the rasterization unit is normal, the detection range is expanded to other units. This hierarchical detection method improves the efficiency of fault location and reduces the time for troubleshooting unnecessary units.
[0095] In one embodiment, a specific implementation method for obtaining a rasterization file output by a rasterization unit in a graphics processor is also provided, such as Figure 7 As shown, the "obtaining a rasterization file output by a rasterization unit in a graphics processor" in the above step S201 includes:
[0096] S501, obtaining coordinate information and attribute information output by each rasterization sub-unit in a rasterization unit.
[0097] Among them, Figure 8 As shown, the graphics processor adopts the xcore architecture. The rasterization unit in the graphics processor includes multiple rasterization sub-units. Each rasterization sub-unit needs to instantiate a position monitor (Position UVM agent), an attribute monitor (Attribute UVM agent) and a processing unit (Quad processor). The position monitor is used to obtain the coordinate information output by the rasterization sub-unit, and the attribute monitor is used to obtain the attribute information output by the rasterization sub-unit, such as color information, etc. The processing unit is used to align the information output by the position monitor and the attribute monitor, and generate a raster sub-file of the rasterization sub-unit.
[0098] In an embodiment of the present application, when the computer device detects that there is an abnormality in the target image output by the image output unit in the graphics processor, the computer device can obtain the coordinate information and attribute information output by each rasterization sub-unit in the processing record of the rasterization unit.
[0099] S502: Generate a raster file according to the coordinate information and attribute information output by each rasterization sub-unit.
[0100] In the embodiment of the present application, after the computer device obtains the coordinate information and attribute information output by each rasterization sub-unit based on the above steps, it can first generate a raster sub-file corresponding to each rasterization sub-unit, and then merge all the raster sub-files to obtain a rasterization file.
[0101] In one embodiment, a specific implementation method for performing fault detection on a rasterization unit according to a detection image is also provided, such as Fig. 9 As shown, the above step S202 of "performing fault detection on the rasterization unit according to the detection image to obtain a first detection result" includes:
[0102] S601, determine whether the detected image is consistent with the standard image, if they are consistent, execute S602, if they are inconsistent, execute S603.
[0103] The standard image may be a desired image.
[0104] In an embodiment of the present application, after obtaining the detection image, the computer device can compare the detection image with the standard image. Specifically, the comparison can be performed manually or by using a preset algorithm or a preset model, and then determine whether the detection image and the standard image are consistent based on the comparison result.
[0105] S602, determining that the first detection result indicates that the rasterization unit is in a normal working state.
[0106] In the embodiment of the present application, if the detected image is consistent with the standard image, it is determined that the first detection result indicates that the rasterization unit is in a normal working state.
[0107] S603 , determining that the first detection result indicates that the rasterization unit is in a potential abnormal state.
[0108] In the embodiment of the present application, if the detection image is inconsistent with the standard image, it is determined that the first detection result indicates that the rasterization unit is in a potential abnormal state.
[0109] Based on all the above embodiments, a method for detecting a fault of a graphics processor is also provided. Fig.10 As shown, the method includes:
[0110] S701, when it is detected that an abnormality exists in a target image output by an image output unit in a graphics processor, coordinate information and attribute information output by each rasterization sub-unit in a rasterization unit are obtained.
[0111] S702: Generate a rasterization file according to the coordinate information and attribute information output by each rasterization sub-unit.
[0112] S703, generating a detection image according to the rasterized file, and determining whether the detection image is consistent with the standard image.
[0113] S704: If they are consistent, determine that the first detection result indicates that the rasterization unit is in a normal working state, and determine that the target detection result indicates that the image output unit has a fault.
[0114] S705: If not consistent, determine that the first detection result indicates that the rasterization unit is in a potential abnormal state, and perform fault detection on the rasterization unit according to the signal waveform output by the rasterization unit to obtain a second detection result.
[0115] S706: If the second detection result indicates that the rasterization unit is in an abnormal working state, determine that the target detection result indicates that the rasterization unit is faulty.
[0116] S707: If the second detection result indicates that the rasterization unit is in a normal working state, the subdivision processing unit is detected according to the signal waveform output by the subdivision processing unit to obtain a third detection result.
[0117] S708: If the third detection result indicates that the subdivision processing unit is in an abnormal working state, it is determined that the target detection result indicates that the subdivision processing unit is faulty.
[0118] S709: If the third detection result indicates that the subdivision processing unit is in a normal working state, the input loading unit is detected according to the signal waveform output by the input loading unit to obtain a fourth detection result.
[0119] S710: If the fourth detection result indicates that the input loading unit is in an abnormal working state, it is determined that the target detection result indicates that the input loading unit is faulty.
[0120] S711: If the fourth detection result indicates that the input loading unit is in a normal working state, it is determined that the target detection result indicates that the image output unit is faulty.
[0121] The methods described in the above steps are all described in the above embodiments. Please refer to the above description for details and will not be repeated here.
[0122] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0123] Based on the same inventive concept, the embodiment of the present application also provides a graphics processor fault detection device for implementing the graphics processor fault detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more graphics processor fault detection devices provided below can refer to the limitations of the graphics processor fault detection method above, and will not be repeated here.
[0124] In one embodiment, Fig.11 As shown, a fault detection device for a graphics processor is provided, comprising:
[0125] The acquisition module 11 is used to acquire the rasterization file output by the rasterization unit in the graphics processor when it is detected that the target image output by the image output unit in the graphics processor is abnormal.
[0126] The first detection module 12 is used to generate a detection image according to the rasterization file, and perform fault detection on the rasterization unit according to the detection image to obtain a first detection result.
[0127] The second detection module 13 is used to detect other units in the graphics processor according to the first detection result to obtain a target detection result.
[0128] In one embodiment, the second detection module 13 includes:
[0129] The first determination unit is configured to determine that the target detection result indicates that an image output unit in the graphics processor is faulty if the first detection result indicates that the rasterization unit is in a normal working state.
[0130] The second determination unit is used to perform fault detection on the rasterization unit according to the signal waveform output by the rasterization unit to obtain a second detection result if the first detection result indicates that the rasterization unit is in a potential abnormal state, and to detect other units according to the second detection result to obtain a target detection result.
[0131] In one embodiment, the second determining unit includes:
[0132] The detection subunit is used to detect other units according to the signal waveforms output by other units to obtain a target detection result if the second detection result indicates that the rasterization unit is in a normal working state.
[0133] The determination subunit is used to determine that the target detection result indicates that the rasterization unit in the graphics processor is faulty if the second detection result indicates that the rasterization unit is in an abnormal working state.
[0134] In one embodiment, the above-mentioned detection subunit is specifically used to detect the subdivision processing unit according to the signal waveform output by the subdivision processing unit to obtain a third detection result; when the third detection result indicates that the subdivision processing unit is in a normal working state, the input loading unit is detected according to the signal waveform output by the input loading unit to obtain a fourth detection result; if the fourth detection result indicates that the input loading unit is in a normal working state, it is determined that the target detection result indicates that there is a fault in the image output unit.
[0135] In one embodiment, the acquisition module 11 includes:
[0136] The acquisition unit is used to acquire the coordinate information and attribute information output by each rasterization sub-unit in the rasterization unit.
[0137] The generating unit is used to generate a rasterized file according to the coordinate information and attribute information output by each rasterization sub-unit.
[0138] In one embodiment, the first detection module 12 includes:
[0139] The third determining unit is used to determine whether the detection image is consistent with the standard image.
[0140] The fourth determination unit is used to determine that the first detection result indicates that the rasterization unit is in a normal working state if the detection image is consistent with the standard image.
[0141] The fifth determining unit is configured to determine, if the detected image is inconsistent with the standard image, that the first detection result indicates that the rasterization unit is in a potential abnormal state.
[0142] Each module in the above-mentioned graphics processor fault detection device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0143] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0144] When it is detected that the target image output by the image output unit in the graphics processor is abnormal, obtaining a rasterization file output by the rasterization unit in the graphics processor;
[0145] Generate a detection image according to the rasterization file, and perform fault detection on the rasterization unit according to the detection image to obtain a first detection result;
[0146] Other units in the graphics processor are detected according to the first detection result to obtain a target detection result.
[0147] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0148] If the first detection result indicates that the rasterization unit is in a normal working state, determining that the target detection result indicates that the image output unit in the graphics processor is faulty;
[0149] If the first detection result indicates that the rasterization unit is in a potential abnormal state, a fault detection is performed on the rasterization unit according to the signal waveform output by the rasterization unit to obtain a second detection result, and other units are detected according to the second detection result to obtain a target detection result.
[0150] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0151] If the second detection result indicates that the rasterization unit is in a normal working state, the other units are detected according to the signal waveforms output by the other units to obtain the target detection result;
[0152] If the second detection result indicates that the rasterization unit is in an abnormal working state, it is determined that the target detection result indicates that the rasterization unit in the graphics processor is faulty.
[0153] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0154] Detecting the subdivision processing unit according to the signal waveform output by the subdivision processing unit to obtain a third detection result;
[0155] When the third detection result indicates that the subdivision processing unit is in a normal working state, the input loading unit is detected according to the signal waveform output by the input loading unit to obtain a fourth detection result;
[0156] If the fourth detection result indicates that the input loading unit is in a normal working state, it is determined that the target detection result indicates that there is a fault in the image output unit.
[0157] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0158] Obtaining coordinate information and attribute information output by each rasterization sub-unit in the rasterization unit;
[0159] A rasterization file is generated according to the coordinate information and attribute information output by each rasterization sub-unit.
[0160] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0161] Determine whether the detected image is consistent with the standard image;
[0162] If the detected image is consistent with the standard image, determining that the first detection result indicates that the rasterization unit is in a normal working state;
[0163] If the detection image is inconsistent with the standard image, it is determined that the first detection result indicates that the rasterization unit is in a potential abnormal state.
[0164] The above embodiment provides a computer device, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0165] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0166] When it is detected that the target image output by the image output unit in the graphics processor is abnormal, obtaining a rasterization file output by the rasterization unit in the graphics processor;
[0167] Generate a detection image according to the rasterization file, and perform fault detection on the rasterization unit according to the detection image to obtain a first detection result;
[0168] Other units in the graphics processor are detected according to the first detection result to obtain a target detection result.
[0169] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0170] If the first detection result indicates that the rasterization unit is in a normal working state, determining that the target detection result indicates that the image output unit in the graphics processor is faulty;
[0171] If the first detection result indicates that the rasterization unit is in a potential abnormal state, a fault detection is performed on the rasterization unit according to the signal waveform output by the rasterization unit to obtain a second detection result, and other units are detected according to the second detection result to obtain a target detection result.
[0172] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0173] If the second detection result indicates that the rasterization unit is in a normal working state, the other units are detected according to the signal waveforms output by the other units to obtain the target detection result;
[0174] If the second detection result indicates that the rasterization unit is in an abnormal working state, it is determined that the target detection result indicates that the rasterization unit in the graphics processor is faulty.
[0175] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0176] Detecting the subdivision processing unit according to the signal waveform output by the subdivision processing unit to obtain a third detection result;
[0177] When the third detection result indicates that the subdivision processing unit is in a normal working state, the input loading unit is detected according to the signal waveform output by the input loading unit to obtain a fourth detection result;
[0178] If the fourth detection result indicates that the input loading unit is in a normal working state, it is determined that the target detection result indicates that there is a fault in the image output unit.
[0179] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0180] Obtaining coordinate information and attribute information output by each rasterization sub-unit in the rasterization unit;
[0181] A rasterization file is generated according to the coordinate information and attribute information output by each rasterization sub-unit.
[0182] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0183] Determine whether the detected image is consistent with the standard image;
[0184] If the detected image is consistent with the standard image, determining that the first detection result indicates that the rasterization unit is in a normal working state;
[0185] If the detection image is inconsistent with the standard image, it is determined that the first detection result indicates that the rasterization unit is in a potential abnormal state.
[0186] The above embodiment provides a computer-readable storage medium, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0187] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0188] When it is detected that the target image output by the image output unit in the graphics processor is abnormal, obtaining a rasterization file output by the rasterization unit in the graphics processor;
[0189] Generate a detection image according to the rasterization file, and perform fault detection on the rasterization unit according to the detection image to obtain a first detection result;
[0190] Other units in the graphics processor are detected according to the first detection result to obtain a target detection result.
[0191] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0192] If the first detection result indicates that the rasterization unit is in a normal working state, determining that the target detection result indicates that the image output unit in the graphics processor is faulty;
[0193] If the first detection result indicates that the rasterization unit is in a potential abnormal state, a fault detection is performed on the rasterization unit according to the signal waveform output by the rasterization unit to obtain a second detection result, and other units are detected according to the second detection result to obtain a target detection result.
[0194] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0195] If the second detection result indicates that the rasterization unit is in a normal working state, the other units are detected according to the signal waveforms output by the other units to obtain the target detection result;
[0196] If the second detection result indicates that the rasterization unit is in an abnormal working state, it is determined that the target detection result indicates that the rasterization unit in the graphics processor is faulty.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0198] Detecting the subdivision processing unit according to the signal waveform output by the subdivision processing unit to obtain a third detection result;
[0199] When the third detection result indicates that the subdivision processing unit is in a normal working state, the input loading unit is detected according to the signal waveform output by the input loading unit to obtain a fourth detection result;
[0200] If the fourth detection result indicates that the input loading unit is in a normal working state, it is determined that the target detection result indicates that there is a fault in the image output unit.
[0201] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0202] Obtaining coordinate information and attribute information output by each rasterization sub-unit in the rasterization unit;
[0203] A rasterization file is generated according to the coordinate information and attribute information output by each rasterization sub-unit.
[0204] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0205] Determine whether the detected image is consistent with the standard image;
[0206] If the detected image is consistent with the standard image, determining that the first detection result indicates that the rasterization unit is in a normal working state;
[0207] If the detection image is inconsistent with the standard image, it is determined that the first detection result indicates that the rasterization unit is in a potential abnormal state.
[0208] The above embodiment provides a computer program product, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0209] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0210] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0211] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for detecting a fault of a graphics processor, characterized in that: The method comprises: When it is detected that the target image output by the image output unit in the graphics processor is abnormal, obtaining a rasterization file output by the rasterization unit in the graphics processor; generating a detection image according to the rasterization file, and performing fault detection on the rasterization unit according to the detection image to obtain a first detection result; Other units in the graphics processor are detected according to the first detection result to obtain a target detection result.
2. The method according to claim 1, characterized in that The detecting other units in the graphics processor according to the first detection result to obtain a target detection result includes: If the first detection result indicates that the rasterization unit is in a normal working state, determining that the target detection result indicates that an image output unit in the graphics processor is faulty; If the first detection result indicates that the rasterization unit is in a potentially abnormal state, a fault detection is performed on the rasterization unit according to a signal waveform output by the rasterization unit to obtain a second detection result, and the other units are detected according to the second detection result to obtain a target detection result.
3. The method according to claim 2, characterized in that The detecting the other units according to the second detection result to obtain the target detection result includes: If the second detection result indicates that the rasterization unit is in a normal working state, detecting the other units according to the signal waveforms output by the other units to obtain the target detection result; If the second detection result indicates that the rasterization unit is in an abnormal working state, it is determined that the target detection result indicates that the rasterization unit in the graphics processor is faulty.
4. The method according to claim 3, characterized in that The other units include a subdivision processing unit, an input loading unit, and the image output unit, and the other units are detected according to the signal waveform output by the other units to obtain the target detection result, including: Detecting the subdivision processing unit according to the signal waveform output by the subdivision processing unit to obtain a third detection result; When the third detection result indicates that the subdivision processing unit is in a normal working state, the input loading unit is detected according to the signal waveform output by the input loading unit to obtain a fourth detection result; If the fourth detection result indicates that the input loading unit is in a normal working state, it is determined that the target detection result indicates that the image output unit is faulty.
5. The method according to claim 1, characterized in that The step of obtaining a rasterization file output by a rasterization unit in the graphics processor comprises: Acquire coordinate information and attribute information output by each rasterization sub-unit in the rasterization unit; A rasterization file is generated according to the coordinate information and attribute information output by each of the rasterization sub-units.
6. The method according to any one of claims 1 to 5, characterized in that: The performing fault detection on the rasterization unit according to the detection image to obtain a first detection result includes: Determining whether the detection image is consistent with the standard image; If they are consistent, determining that the first detection result indicates that the rasterization unit is in a normal working state; If not consistent, it is determined that the first detection result indicates that the rasterization unit is in a potentially abnormal state.
7. A graphics processor fault detection device, characterized in that: The device comprises: An acquisition module, configured to acquire a rasterization file output by a rasterization unit in the graphics processor when detecting that an abnormality exists in a target image output by an image output unit in the graphics processor; A first detection module, used for generating a detection image according to the rasterization file, and performing fault detection on the rasterization unit according to the detection image to obtain a first detection result; The second detection module is used to detect other units in the graphics processor according to the first detection result to obtain a target detection result.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method, system and storage medium for detecting grating bonding offset
CN109005400A
Real-time online monitoring and fault diagnosis system for hydraulic pipeline based on fiber grating sensing
CN109443430A
Display fault detection method and device and readable storage medium
CN111855155A
GPU (Graphics Processing Unit) state debugging method and device based on self-developed graphics card and storage medium
CN115408227A
Active raster composition and error checking in hardware
US8134567B1