File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -1291,7 +1291,12 @@ UNLOCK_COMMAND(&alloc_lock);
1291
1291
return (void * )(((char * )alloc_info ) + sizeof (struct alloc_t ));
1292
1292
1293
1293
error :
1294
- printf ("OpenBLAS : Program will terminate because you tried to allocate too many memory regions.\n" );
1294
+ printf ("OpenBLAS : Program will terminate because you tried to allocate too many TLS memory regions.\n" );
1295
+ printf ("This library was built to support a maximum of %d threads - either rebuild OpenBLAS\n" , NUM_BUFFERS );
1296
+ printf ("with a larger NUM_THREADS value or set the environment variable OPENBLAS_NUM_THREADS to\n" );
1297
+ printf ("a sufficiently small number. This error typically occurs when the software that relies on\n" );
1298
+ printf ("OpenBLAS calls BLAS functions from many threads in parallel, or when your computer has more\n" );
1299
+ printf ("cpu cores than what OpenBLAS was configured to handle.\n" );
1295
1300
1296
1301
return NULL ;
1297
1302
}
@@ -2878,8 +2883,12 @@ void *blas_memory_alloc(int procpos){
2878
2883
return (void * )memory [position ].addr ;
2879
2884
2880
2885
error :
2881
- printf ("BLAS : Program is Terminated. Because you tried to allocate too many memory regions.\n" );
2882
-
2886
+ printf ("OpenBLAS : Program is Terminated. Because you tried to allocate too many memory regions.\n" );
2887
+ printf ("This library was built to support a maximum of %d threads - either rebuild OpenBLAS\n" , NUM_BUFFERS );
2888
+ printf ("with a larger NUM_THREADS value or set the environment variable OPENBLAS_NUM_THREADS to\n" );
2889
+ printf ("a sufficiently small number. This error typically occurs when the software that relies on\n" );
2890
+ printf ("OpenBLAS calls BLAS functions from many threads in parallel, or when your computer has more\n" );
2891
+ printf ("cpu cores than what OpenBLAS was configured to handle.\n" );
2883
2892
return NULL ;
2884
2893
}
2885
2894
You can’t perform that action at this time.
0 commit comments