Skip to content

Commit

Permalink
change superlu_malloc_total to 64-bit integer.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyeli committed Dec 8, 2024
1 parent 7a05fcb commit 5c1fe49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SRC/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ at the top-level directory.


#if ( DEBUGlevel>=1 ) /* Debug malloc/free. */
int_t superlu_malloc_total = 0;
int64_t superlu_malloc_total = 0;

#define PAD_FACTOR 2
#define DWORD (sizeof(double)) /* Be sure it's no smaller than double. */
Expand Down
5 changes: 3 additions & 2 deletions SRC/slu_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ at the top-level directory.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>

/*
#ifndef __STDC__
Expand Down Expand Up @@ -86,8 +87,8 @@ at the top-level directory.
#define SUPERLU_FREE(addr) USER_FREE(addr)

#define CHECK_MALLOC(where) { \
extern int superlu_malloc_total; \
printf("%s: malloc_total %d Bytes\n", \
extern int64_t superlu_malloc_total; \
printf("%s: malloc_total %lld Bytes\n", \
where, superlu_malloc_total); \
}

Expand Down

0 comments on commit 5c1fe49

Please sign in to comment.