diff options
-rw-r--r-- | param.ccl | 2 | ||||
-rw-r--r-- | src/SetupPGF.c | 13 |
2 files changed, 9 insertions, 6 deletions
@@ -62,7 +62,7 @@ INT proc_top_nz "No of Procs in Z direction" LOGICAL padding_active "Padd 3D arrays so they line up on cache lines?" { -} yes +} no INT padding_cacheline_bits "Number of bits which have to be unique to padd properly for cache lines" diff --git a/src/SetupPGF.c b/src/SetupPGF.c index fe01874..ada5226 100644 --- a/src/SetupPGF.c +++ b/src/SetupPGF.c @@ -193,6 +193,7 @@ void DestroyPGF(pGH *GH, pGF **GFin) { instance, see the trK Driver in the util thron. @enddesc @@*/ + /* Joan was here */ int EnableGFDataStorage(pGH *GH, pGF *GF) { @@ -202,13 +203,15 @@ int EnableGFDataStorage(pGH *GH, pGF *GF) static int ive_blathered = 0; if (zero_memory && !ive_blathered) - printf ("Zeroing memory for allocated GFs at alloc time\n"); + CCTK_INFO("Zeroing memory for allocated GFs at alloc time"); + + if (padding_active && !ive_blathered) { - printf ("PUGH Memory padding active. Stats:\n"); - printf (" cacheline_bits : %d\n", padding_cacheline_bits); - printf (" size : %d\n", padding_size); - printf (" spacing : %d\n", padding_address_spacing); + char *infomsg = (char *) malloc (200); + sprintf (infomsg,"PUGH Memory padding active. Stats:\n cacheline_bits : %d\n size : %d\n spacing : %d",padding_cacheline_bits, padding_size, padding_address_spacing); + CCTK_INFO(infomsg); + free(infomsg); } ive_blathered = 1; |