Improve the error message for thread creation failure
This commit is contained in:
parent
6013b36b16
commit
a373d0f107
|
@ -595,6 +595,8 @@ int blas_thread_init(void){
|
||||||
struct rlimit rlim;
|
struct rlimit rlim;
|
||||||
const char *msg = strerror(ret);
|
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: 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
|
#ifdef RLIMIT_NPROC
|
||||||
if(0 == getrlimit(RLIMIT_NPROC, &rlim)) {
|
if(0 == getrlimit(RLIMIT_NPROC, &rlim)) {
|
||||||
fprintf(STDERR, "OpenBLAS blas_thread_init: RLIMIT_NPROC "
|
fprintf(STDERR, "OpenBLAS blas_thread_init: RLIMIT_NPROC "
|
||||||
|
|
Loading…
Reference in New Issue