Trim constraint-only GPU downloads

This commit is contained in:
2026-04-09 19:36:19 +08:00
parent 7cd2414faa
commit 46e94d1248
3 changed files with 22 additions and 11 deletions

View File

@@ -7290,7 +7290,7 @@ void bssn_class::Constraint_Out()
if (myrank == cg->rank)
{
#ifdef USE_GPU
gpu_rhs(CALLED_BY_CONSTRAINT, myrank, RHS_PARA_CALLED_Constraint_Out);
gpu_rhs(CALLED_BY_CONSTRAINT_CONS_ONLY, myrank, RHS_PARA_CALLED_Constraint_Out);
#else
f_compute_rhs_bssn(cg->shape, TRK4, cg->X[0], cg->X[1], cg->X[2],
cg->fgfs[phi0->sgfn], cg->fgfs[trK0->sgfn],
@@ -7797,7 +7797,7 @@ void bssn_class::Interp_Constraint(bool infg)
if (myrank == cg->rank)
{
#ifdef USE_GPU
gpu_rhs(CALLED_BY_CONSTRAINT, myrank, RHS_PARA_CALLED_Interp_Constraint);
gpu_rhs(CALLED_BY_CONSTRAINT_CONS_ONLY, myrank, RHS_PARA_CALLED_Interp_Constraint);
#else
f_compute_rhs_bssn(cg->shape, TRK4, cg->X[0], cg->X[1], cg->X[2],
cg->fgfs[phi0->sgfn], cg->fgfs[trK0->sgfn],