ROKO
Error: command buffer exited with error status. 본문
NLP 감성분석 프로젝트를 하는 과정중 LeaderBoard[link]를 보며 실습을 진행하였다.
Colab이 아닌 맥북 에어 M1 "mps"를 사용해 학습을 진행하려했는데 실행 도중 위와 같은 오류가 발생하였다. 에러가 나기 보다는 경고문 처럼 발생하였다.
Error: command buffer exited with error status.
The Metal Performance Shaders operations encoded on it may not have completed.
해석하자면 '에러 상태로 명령 버퍼가 종료되었고 "Metal Performance Shaders"연산이 완료되지 않았을 수 있다.' 라는 내용이다. Metal Performance Shaders는 apple developer[link] 페이지를 보면 Pytorch의 GPU 학습을 위한 그래픽 API이다.
더 자세한 내용은 이 블로그를 참조하자. [link]
Apple developer 게시판에 에러 내용을 더 살펴보면 비슷한 에러를 겪은 사람이 많았고, 맥 프로나 성능이 좋은 버전에서는 같은 코드가 정상적으로 실행되었다는 내용이 있다. stackoverflow든 github든 명확히 밝혀진 내용은 없으나 개인적으로 원인은 memory부족이 아닐까 생각한다. Error가 해결되면 자세하게 내용을 수정할 것이다.
https://developer.apple.com/forums/thread/693849
Error: command buffer exited with … | Apple Developer Forums
I have exactly the same error, and it happens on an M1 Ultra chip; however EXACTLY THE SAME CODE runs perfectly fine on an i9 MacBook Pro... So far the "upgrade" to M1 Ultra is not going well as software is not updated/ready for this new processor, and the
developer.apple.com
'Develop' 카테고리의 다른 글
np.zeros() VS np.zeros_like() (0) | 2022.12.30 |
---|---|
error: command '/usr/bin/clang' failed with exit code 1 glounnlp (0) | 2022.12.28 |
AttributeError: 'tqdm_notebook' object has no attribute 'disp' (0) | 2022.12.22 |
What is ONNX? (0) | 2022.12.21 |