title: How to solve Insufficient Permission (to submit GPU work from background) (IOAF code 6)?
body: <p>I have developed an app that uses Metal performance shaders to compute the machine learning prediction from a TensorFlow trained model. The app works fine in foreground but in background I get the error:</p>
  
  <p>"Execution of the command buffer was aborted due to an error during execution. Insufficient Permission (to submit GPU work from background) (IOAF code 6)"</p>
  
  <p>How do we enable GPU processing in background mode?</p>