Strange error during makeComputePipelineState

Hey!

In the last couple of days, I have received multiple crash reports from users during the startup sequence of my app. The underlying issue seems to arise during a call to makeComputePipelineState, which fails with the following error message:

Inlining all functions due to use of indirect argument bufferEncountered unlowered function call to air.get_threads_per_simdgroup.i16

Am I right to assume that those are actually two messages that are not necessarily related? I am not quite sure what to make of the second part in particular, so any guidance would be greatly appreciated!

The number of crashes has been single-digit so far, but all of them have happened on the same model: the iPad Pro (12.9-inch) (3rd generation). (Not sure if that is of any importance.)

What version of the OS are these crashes happening on?

The ones that have been reported happened on iOS 15.6.1 and 15.5. Simply removing the input argument with the [[threads_per_simdgroup]] attribute and hardcoding a value has worked as a temporary workaround btw, though obviously not optimal.

The ones that have been reported happened on iOS 15.6.1 and 15.5.

(For some reason, my comments keep disappearing, so I'll just post this as an answer.)

The crashes that have been reported happened on iOS 15.6.1 and 15.5 and on every launch, not just from time to time. As a side note, removing the input argument with the [[threads_per_simdgroup]] attribute from the kernel function and replacing it with a hardcoded value works as a temporary fix, though obviously not optimal.

Strange error during makeComputePipelineState
 
 
Q