|
|
@@ -595,6 +595,8 @@ int blas_thread_init(void){ |
|
|
|
struct rlimit rlim; |
|
|
|
const char *msg = strerror(ret); |
|
|
|
fprintf(STDERR, "OpenBLAS blas_thread_init: pthread_create failed for thread %ld of %d: %s\n", i+1,blas_num_threads,msg); |
|
|
|
fprintf(STDERR, "OpenBLAS blas_thread_init: ensure that your address space and process count limits are big enough (ulimit -a)\n"); |
|
|
|
fprintf(STDERR, "OpenBLAS blas_thread_init: or set a smaller OPENBLAS_NUM_THREADS to fit into what you have available\n"); |
|
|
|
#ifdef RLIMIT_NPROC |
|
|
|
if(0 == getrlimit(RLIMIT_NPROC, &rlim)) { |
|
|
|
fprintf(STDERR, "OpenBLAS blas_thread_init: RLIMIT_NPROC " |
|
|
|