Skip to content

Commit 2db1a99

Browse files
authored
Clean up debug messages
1 parent 89fc5b8 commit 2db1a99

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

driver/others/memory.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2985,7 +2985,7 @@ void *blas_memory_alloc(int procpos){
29852985

29862986
error:
29872987
if (memory_overflowed) goto terminate;
2988-
printf("num_buffers exceeded, adding auxiliary array\n");
2988+
fprintf(stderr,"OpenBLAS warning: precompiled NUM_THREADS exceeded, adding auxiliary array for thread metadata.\n")
29892989
memory_overflowed=1;
29902990
new_release_info = (struct release_t*) malloc(512*sizeof(struct release_t));
29912991
newmemory = (struct newmemstruct*) malloc(512*sizeof(struct newmemstruct));
@@ -3057,9 +3057,9 @@ void *blas_memory_alloc(int procpos){
30573057
UNLOCK_COMMAND(&alloc_lock);
30583058
#endif
30593059

3060-
//#ifdef DEBUG
3060+
#ifdef DEBUG
30613061
printf(" Mapping Succeeded. %p(%d)\n", (void *)newmemory[position-NUM_BUFFERS].addr, position);
3062-
//#endif
3062+
#endif
30633063

30643064
#if defined(WHEREAMI) && !defined(USE_OPENMP)
30653065

@@ -3110,9 +3110,9 @@ void blas_memory_free(void *free_area){
31103110
UNLOCK_COMMAND(&alloc_lock);
31113111
#endif
31123112

3113-
//#ifdef DEBUG
3113+
#ifdef DEBUG
31143114
printf("Unmap from overflow area succeeded.\n\n");
3115-
//#endif
3115+
#endif
31163116
return;
31173117
} else {
31183118
// arm: ensure all writes are finished before other thread takes this memory

0 commit comments

Comments
 (0)