Problem
When I tried to run a python script using numpy, it gave the following error.
$ python t3_batch.py OpenBLAS blas_thread_init: pthread_create failed for thread 27 of 36: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC 514120 current, 514120 max OpenBLAS blas_thread_init: pthread_create failed for thread 28 of 36: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC 514120 current, 514120 max OpenBLAS blas_thread_init: pthread_create failed for thread 29 of 36: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC 514120 current, 514120 max OpenBLAS blas_thread_init: pthread_create failed for thread 30 of 36: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC 514120 current, 514120 max OpenBLAS blas_thread_init: pthread_create failed for thread 31 of 36: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC 514120 current, 514120 max OpenBLAS blas_thread_init: pthread_create failed for thread 32 of 36: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC 514120 current, 514120 max
Solution
found a solution from here
from the shell, execute the following
export OMP_NUM_THREADS=1 export USE_SIMPLE_THREADED_LEVEL3= 1
0 Comments