Skip to content

Commit 4e597ae

Browse files
authored
Merge pull request #4031 from martin-frbg/issue4026
Add suggestions to NUM_THREADS/auxiliary buffer message
2 parents 6f38a94 + e5538a6 commit 4e597ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

driver/others/memory.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3015,6 +3015,8 @@ void *blas_memory_alloc(int procpos){
30153015
#endif
30163016
if (memory_overflowed) goto terminate;
30173017
fprintf(stderr,"OpenBLAS warning: precompiled NUM_THREADS exceeded, adding auxiliary array for thread metadata.\n");
3018+
fprintf(stderr,"To avoid this warning, please rebuild your copy of OpenBLAS with a larger NUM_THREADS setting\n");
3019+
fprintf(stderr,"or set the environment variable OPENBLAS_NUM_THREADS to %d or lower\n", NUM_BUFFERS);
30183020
memory_overflowed=1;
30193021
new_release_info = (struct release_t*) malloc(512*sizeof(struct release_t));
30203022
newmemory = (struct newmemstruct*) malloc(512*sizeof(struct newmemstruct));

0 commit comments

Comments
 (0)