Dev record

OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 24: Resource temporarily unavailableOpenBLAS blas_thread_init: RLIMIT_NPROC 1 current, 1 maxRuntime Error:Interrupt

Barrer 2023. 10. 4. 21:41
반응형

코드업을 이용해서 코딩 문제를 풀고 제출을 하면 다음과 같은 오류가 발생한다.

실행 중 에러 라는 메세지가 나오고 이걸 클릭하면 다음과 같은 오류 코드를 나타낸다.

 

 

OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 24: Resource temporarily unavailableOpenBLAS blas_thread_init: RLIMIT_NPROC 1 current, 1 maxRuntime Error:Interrupt

이 문제는 numpy 모듈을 import 할 때 발생하는데 아래 두 줄을 코드 맨 앞에 붙여넣으면 문제가 해결된다.

import os
os.environ['OPENBLAS_NUM_THREADS'] = '1'

반응형