blob: 71ffa2170fba451d2a303a8480bb7a80383dbd4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/*@@
@file SetupCache.c
@date Tue Nov 30 10:30:09 1999
@author Tom Goodale
@desc
Sets up cache stuff for the CCTK
@enddesc
@version $Id$
@@*/
#include "cctk_Config.h"
#include "cctk_Flesh.h"
#include "cctk_Parameters.h"
#include "cctki_Cache.h"
static const char *rcsid = "$Header$";
CCTK_FILEVERSION(main_SetupCache_c);
/*@@
@routine CCTKi_SetupCache
@date Tue Nov 30 10:50:02 1999
@author Tom Goodale
@desc
Sets the cache information.
@enddesc
@calls Utili_CacheDataSet
@returntype int
@returndesc
0 - success
@endreturndesc
@@*/
int CCTKi_SetupCache (void)
{
DECLARE_CCTK_PARAMETERS
if (manual_cache_setup)
{
Utili_CacheDataSet (manual_cacheline_bytes, manual_cache_size);
}
else
{
Utili_CacheDataSet (CCTK_CACHELINE_BYTES, CCTK_CACHE_SIZE);
}
return (0);
}
|