2017-12-29 50 views
0

저는 실시간으로 비디오 피드에 컴퓨터 비전 알고리즘을 실행하고 있습니다. 난 비동기 적으로 DispatchQueue을 사용하여 이러한 연산/알고리즘을 실행하고 있습니다.Dispatch Thread Groups Error

[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.depth1
  • threadgroupsPerGrid.width * threadgroupsPerGrid.y * threadgroupsPerGrid.depth이 잘못된 상태입니다 0

으로 평가했다이었다 당신이 잘못된 인수를 0123에 넘긴 결과 일 가능성이 높습니다.. 추측해야만한다면 threadgroupsPerGrid.width0 일 것입니다.