diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-01-16 14:43:47 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-01-16 14:43:47 -0500 |
commit | 1cddd960d62da42ccd111022f1326740f688b48d (patch) | |
tree | 5c0c591e8fca50868ae5f80b703c4422eef3df30 /Carpet/CarpetLib/interface.ccl | |
parent | f07af2a351c2096f84487b13c114a1925755eafb (diff) |
CarpetLib: Rewrite array padding
Obtain cache information from thorn hwloc.
Align allocated memory manually if operator new returns unaligned memory.
Diffstat (limited to 'Carpet/CarpetLib/interface.ccl')
-rw-r--r-- | Carpet/CarpetLib/interface.ccl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/interface.ccl b/Carpet/CarpetLib/interface.ccl index 0a2086c4f..d64b2c782 100644 --- a/Carpet/CarpetLib/interface.ccl +++ b/Carpet/CarpetLib/interface.ccl @@ -77,3 +77,10 @@ CCTK_INT FUNCTION GetBoundarySpecification \ CCTK_INT OUT ARRAY is_staggered, \ CCTK_INT OUT ARRAY shiftout) USES FUNCTION GetBoundarySpecification + + + +CCTK_INT FUNCTION GetCacheInfo1(CCTK_INT ARRAY OUT linesizes, \ + CCTK_INT ARRAY OUT strides, \ + CCTK_INT IN max_num_cache_levels) +USES FUNCTION GetCacheInfo1 |