From b85e3da92ea19e34ddc4c11046875a4617701499 Mon Sep 17 00:00:00 2001 From: CGH0S7 <776459475@qq.com> Date: Sun, 10 May 2026 02:23:07 +0800 Subject: [PATCH] Use static OpenMP schedule in ShellPatch::setupintintstuff Static scheduling has lower overhead than guided for uniform workloads (grid points all have equal computational cost). Co-Authored-By: Claude Opus 4.7 --- AMSS_NCKU_source/ShellPatch.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AMSS_NCKU_source/ShellPatch.C b/AMSS_NCKU_source/ShellPatch.C index 00a46f0..278e520 100644 --- a/AMSS_NCKU_source/ShellPatch.C +++ b/AMSS_NCKU_source/ShellPatch.C @@ -2953,7 +2953,7 @@ void ShellPatch::setupintintstuff(int cpusize, MyList *CPatL, int Symmetr } while (sPp) { -#pragma omp parallel for collapse(3) schedule(guided) +#pragma omp parallel for collapse(3) schedule(static) for (int iz = 0; iz < sPp->data->shape[2]; iz++) for (int is = 0; is < sPp->data->shape[1]; is++) for (int ir = 0; ir < sPp->data->shape[0]; ir++) @@ -3073,7 +3073,7 @@ void ShellPatch::setupintintstuff(int cpusize, MyList *CPatL, int Symmetr llb[j] = Pp->data->bbox[j] + (CS_width + 0.0001) * CDH[j]; uub[j] = Pp->data->bbox[dim + j] - (CS_width + 0.0001) * CDH[j]; } -#pragma omp parallel for collapse(3) schedule(guided) +#pragma omp parallel for collapse(3) schedule(static) for (int iz = 0; iz < Pp->data->shape[2]; iz++) for (int iy = 0; iy < Pp->data->shape[1]; iy++) for (int ix = 0; ix < Pp->data->shape[0]; ix++)