2017-12-29 100 views
0

私はリアルタイムで取得しているビデオフィードでコンピュータビジョンアルゴリズムを実行しています。私はDispatchQueueを非同期に使ってこれらの演算/アルゴリズムを実行しています。しかし、私は解釈できない、次のエラーを取得しています:ディスパッチスレッドグループエラー

[MTLDebugComputeCommandEncoder dispatchThreadgroups:threadsPerThreadgroup:]:949: failed assertion (threadgroupsPerGrid.width(0) * threadgroupsPerGrid.y(12) * threadgroupsPerGrid.depth(1))(0) must not be 0.'

このエラーは何ですか?

答えて

0

このメッセージは、アサーションによって引き起こされたアサーションエラーが[MTLDebugComputeCommandEncoder dispatchThreadgroups:threadsPerThreadgroup:]であったことを示しています。

限り私はそれを理解し、それはこの表現と主張した。

threadgroupsPerGrid.width * threadgroupsPerGrid.y * threadgroupsPerGrid.depth 

0すべきではないが、それはこのアサーションの失敗を引き起こし、0ました。さらに、彼らはこれらの変数の値を注釈付きました:

  • threadgroupsPerGrid.width0
  • threadgroupsPerGrid.y12
  • threadgroupsPerGrid.depthはこの無効な状態である0

に評価さ1

  • threadgroupsPerGrid.width * threadgroupsPerGrid.y * threadgroupsPerGrid.depthでしたおそらく無効な引数を0123に渡した結果です。私が推測しなければならない問題は、おそらくthreadgroupsPerGrid.width0だったことでしょう。