Skip to content

Commit bb2f1ec

Browse files
authored
Merge pull request #4222 from dev-zero/bugfix/correct-thread-warning
memory: show correct number of max threads
2 parents 466e611 + 6a611db commit bb2f1ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/others/memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3012,7 +3012,7 @@ void *blas_memory_alloc(int procpos){
30123012
if (memory_overflowed) goto terminate;
30133013
fprintf(stderr,"OpenBLAS warning: precompiled NUM_THREADS exceeded, adding auxiliary array for thread metadata.\n");
30143014
fprintf(stderr,"To avoid this warning, please rebuild your copy of OpenBLAS with a larger NUM_THREADS setting\n");
3015-
fprintf(stderr,"or set the environment variable OPENBLAS_NUM_THREADS to %d or lower\n", NUM_BUFFERS);
3015+
fprintf(stderr,"or set the environment variable OPENBLAS_NUM_THREADS to %d or lower\n", MAX_CPU_NUMBER);
30163016
memory_overflowed=1;
30173017
new_release_info = (struct release_t*) malloc(512*sizeof(struct release_t));
30183018
newmemory = (struct newmemstruct*) malloc(512*sizeof(struct newmemstruct));

0 commit comments

Comments
 (0)