MetalKit for iOS 10: command buffer execution was interrupted due to a run-time error. Causal GPU Timeout Error (IOAF Code 2)

Using MetalKit for iOS 10 when we try to run MPSCNNConvolution, with inputs as follows:

Core size: 16x16 Input channels: 300 Output channels: 250

Input Image Dimensions: 250x250x300

The execution of the command buffer takes more than 10 seconds, after which it displays the message: "The execution of the command buffer was interrupted due to a run-time error. The GPU timeout error caused (IOAF code 2)." How to fix it?

Is there a way to fix the process? (since 10 seconds is too long to complete these arrogant convolutions)

With the help of these convolutions, our goal is to perform deconvolution, and since it does not yet have an API, we try to do it ourselves. Are there any API methods for performing these deconvolution operations?

+4
source share
2 answers

It seems that an error occurred that led to a timeout. I do not think that the execution time of your program is the actual cause of the timeout.

I would try the following: go to Product -> Scheme -> Edit Scheme -> with "Run" selected, go to the "Options" tab -> Set API check for API on .

, , , .

0

Source: https://habr.com/ru/post/1667837/


All Articles