Skip to content

Commit 28aa94b

Browse files
authored
Include thread numbers in failure message from blas_thread_init
to aid in debugging cases like #1767
1 parent 288aeea commit 28aa94b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/others/blas_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ int blas_thread_init(void){
582582
if(ret!=0){
583583
struct rlimit rlim;
584584
const char *msg = strerror(ret);
585-
fprintf(STDERR, "OpenBLAS blas_thread_init: pthread_create: %s\n", msg);
585+
fprintf(STDERR, "OpenBLAS blas_thread_init: pthread_create failed for thread %ld of %ld: %s\n", i+1,blas_num_threads,msg);
586586
#ifdef RLIMIT_NPROC
587587
if(0 == getrlimit(RLIMIT_NPROC, &rlim)) {
588588
fprintf(STDERR, "OpenBLAS blas_thread_init: RLIMIT_NPROC "

0 commit comments

Comments
 (0)