Add mixed GPU RP path for EScalar
This commit is contained in:
@@ -1755,8 +1755,14 @@ void bssnEScalar_class::Step(int lev, int YN)
|
||||
#if (RPS == 0)
|
||||
// mesh refinement boundary part
|
||||
#if USE_CUDA_BSSN
|
||||
if (!getenv("AMSS_ESCALAR_SPLIT_RP") || atoi(getenv("AMSS_ESCALAR_SPLIT_RP")) == 0)
|
||||
download_bssn_cuda_prefix_if_present(GH->PatL[lev], SynchList_cor, myrank);
|
||||
{
|
||||
const char *mixed_env = getenv("AMSS_ESCALAR_MIXED_GPU_RP");
|
||||
const bool mixed_gpu_rp = (!mixed_env || atoi(mixed_env) != 0);
|
||||
const char *split_env = getenv("AMSS_ESCALAR_SPLIT_RP");
|
||||
const bool split_rp = (split_env && atoi(split_env) != 0);
|
||||
if (!mixed_gpu_rp && !split_rp)
|
||||
download_bssn_cuda_prefix_if_present(GH->PatL[lev], SynchList_cor, myrank);
|
||||
}
|
||||
#endif
|
||||
RestrictProlong(lev, YN, BB);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user