Add suggestions to NUM_THREADS/auxiliary buffer message

This commit is contained in:
Martin Kroeker 2023-05-04 22:56:39 +02:00 committed by GitHub
parent 6f38a946e8
commit e5538a62cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -3015,6 +3015,8 @@ void *blas_memory_alloc(int procpos){
#endif #endif
if (memory_overflowed) goto terminate; if (memory_overflowed) goto terminate;
fprintf(stderr,"OpenBLAS warning: precompiled NUM_THREADS exceeded, adding auxiliary array for thread metadata.\n"); fprintf(stderr,"OpenBLAS warning: precompiled NUM_THREADS exceeded, adding auxiliary array for thread metadata.\n");
fprintf(stderr,"To avoid this warning, please rebuild your copy of OpenBLAS with a larger NUM_THREADS setting\n");
fprintf(stderr,"or set the environment variable OPENBLAS_NUM_THREADS to %d or lower\n", NUM_BUFFERS);
memory_overflowed=1; memory_overflowed=1;
new_release_info = (struct release_t*) malloc(512*sizeof(struct release_t)); new_release_info = (struct release_t*) malloc(512*sizeof(struct release_t));
newmemory = (struct newmemstruct*) malloc(512*sizeof(struct newmemstruct)); newmemory = (struct newmemstruct*) malloc(512*sizeof(struct newmemstruct));