main
test-branch
| Line | |
|---|
| 1 | /*BHEADER**********************************************************************
|
|---|
| 2 | * Copyright (c) 2008, Lawrence Livermore National Security, LLC.
|
|---|
| 3 | * Produced at the Lawrence Livermore National Laboratory.
|
|---|
| 4 | * This file is part of HYPRE. See file COPYRIGHT for details.
|
|---|
| 5 | *
|
|---|
| 6 | * HYPRE is free software; you can redistribute it and/or modify it under the
|
|---|
| 7 | * terms of the GNU Lesser General Public License (as published by the Free
|
|---|
| 8 | * Software Foundation) version 2.1 dated February 1999.
|
|---|
| 9 | *
|
|---|
| 10 | * $Revision: 2.4 $
|
|---|
| 11 | ***********************************************************************EHEADER*/
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 | #ifndef UMALLOC_LOCAL_HEADER
|
|---|
| 15 | #define UMALLOC_LOCAL_HEADER
|
|---|
| 16 |
|
|---|
| 17 | #ifdef HYPRE_USE_UMALLOC
|
|---|
| 18 | #include <umalloc.h>
|
|---|
| 19 |
|
|---|
| 20 | #define MAX_THREAD_COUNT 10
|
|---|
| 21 | #define INITIAL_HEAP_SIZE 500000
|
|---|
| 22 | #define GET_MISS_COUNTS
|
|---|
| 23 |
|
|---|
| 24 | struct upc_struct
|
|---|
| 25 | {
|
|---|
| 26 | Heap_t myheap;
|
|---|
| 27 | };
|
|---|
| 28 |
|
|---|
| 29 | void *_uinitial_block[MAX_THREAD_COUNT];
|
|---|
| 30 | struct upc_struct _uparam[MAX_THREAD_COUNT];
|
|---|
| 31 |
|
|---|
| 32 | int _uheapReleasesCount=0;
|
|---|
| 33 | int _uheapGetsCount=0;
|
|---|
| 34 |
|
|---|
| 35 | void *_uget_fn(Heap_t usrheap, size_t *length, int *clean);
|
|---|
| 36 | void _urelease_fn(Heap_t usrheap, void *p, size_t size);
|
|---|
| 37 |
|
|---|
| 38 | #endif
|
|---|
| 39 |
|
|---|
| 40 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.