diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2012-02-02 20:04:07 -0500 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2012-09-11 18:17:59 +0100 |
commit | 5aaf2d6a6b363ed4b167a4dc0904f5ecdc90c4b2 (patch) | |
tree | 18e680af8d9306433a25ee90c236bc967c88c182 /Carpet/Carpet/interface.ccl | |
parent | 1ad182da0dcaa840d82242b1149afe989ffdb7a0 (diff) |
Carpet: Make host/process association publicly available
Determine and store host/process association.
Provide aliased function API to query this.
Improve performance of multi-model API.
Diffstat (limited to 'Carpet/Carpet/interface.ccl')
-rw-r--r-- | Carpet/Carpet/interface.ccl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Carpet/Carpet/interface.ccl b/Carpet/Carpet/interface.ccl index 0415465de..506f9e8d4 100644 --- a/Carpet/Carpet/interface.ccl +++ b/Carpet/Carpet/interface.ccl @@ -48,6 +48,18 @@ PROVIDES FUNCTION GetMPICommWorld WITH Carpet_GetMPICommWorld LANGUAGE C +# Get access to process->host mapping +CCTK_INT FUNCTION CCTK_MyHost(CCTK_POINTER_TO_CONST IN cctkGH) +CCTK_INT FUNCTION CCTK_nHosts(CCTK_POINTER_TO_CONST IN cctkGH) +CCTK_INT FUNCTION CCTK_nProcsOnHost(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN host) +CCTK_INT FUNCTION CCTK_ProcsOnHost(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN host, CCTK_INT ARRAY OUT procs, CCTK_INT IN nprocs) +PROVIDES FUNCTION CCTK_MyHost WITH Carpet_MyHost LANGUAGE C +PROVIDES FUNCTION CCTK_nHosts WITH Carpet_nHosts LANGUAGE C +PROVIDES FUNCTION CCTK_nProcsOnHost WITH Carpet_nProcsOnHost LANGUAGE C +PROVIDES FUNCTION CCTK_ProcsOnHost WITH Carpet_ProcsOnHost LANGUAGE C + + + # Register and unregister routines which are called before and after # every scheduled routine CCTK_INT \ |