From e6cb304cfb3005b7a854072da431d9c3e6b57542 Mon Sep 17 00:00:00 2001 From: Phillip Allen Lane Date: Mon, 20 Nov 2023 22:05:41 -0600 Subject: [PATCH] add documentation for when TooManyIterationsException is thrown --- DotMP/Parallel.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DotMP/Parallel.cs b/DotMP/Parallel.cs index d1a47eb5..64b6d51e 100644 --- a/DotMP/Parallel.cs +++ b/DotMP/Parallel.cs @@ -204,6 +204,7 @@ public static void For(int start, int end, Action action, IScheduler schedu /// Thrown when not in a parallel region. /// Thrown when nested inside another worksharing region. /// Thrown if any provided arguments are invalid. + /// Thrown if there are too many iterations to handle. public static void ForCollapse((int, int) firstRange, (int, int) secondRange, Action action, IScheduler schedule = null, uint? chunk_size = null) { ForAction forAction = new ForAction(action, new (int, int)[] { firstRange, secondRange }); @@ -231,6 +232,7 @@ public static void ForCollapse((int, int) firstRange, (int, int) secondRange, Ac /// Thrown when not in a parallel region. /// Thrown when nested inside another worksharing region. /// Thrown if any provided arguments are invalid. + /// Thrown if there are too many iterations to handle. public static void ForCollapse((int, int) firstRange, (int, int) secondRange, (int, int) thirdRange, Action action, IScheduler schedule = null, uint? chunk_size = null) { ForAction forAction = new ForAction(action, new (int, int)[] { firstRange, secondRange, thirdRange }); @@ -260,6 +262,7 @@ public static void ForCollapse((int, int) firstRange, (int, int) secondRange, (i /// Thrown when not in a parallel region. /// Thrown when nested inside another worksharing region. /// Thrown if any provided arguments are invalid. + /// Thrown if there are too many iterations to handle. public static void ForCollapse((int, int) firstRange, (int, int) secondRange, (int, int) thirdRange, (int, int) fourthRange, Action action, IScheduler schedule = null, uint? chunk_size = null) { ForAction forAction = new ForAction(action, new (int, int)[] { firstRange, secondRange, thirdRange, fourthRange }); @@ -287,6 +290,7 @@ public static void ForCollapse((int, int) firstRange, (int, int) secondRange, (i /// Thrown when not in a parallel region. /// Thrown when nested inside another worksharing region. /// Thrown if any provided arguments are invalid. + /// Thrown if there are too many iterations to handle. public static void ForCollapse((int, int)[] ranges, Action action, IScheduler schedule = null, uint? chunk_size = null) { ForAction forAction = new ForAction(action, ranges); @@ -394,6 +398,7 @@ public static void ForReduction(int start, int end, Operations op, ref T redu /// Thrown when not in a parallel region. /// Thrown when nested inside another worksharing region. /// Thrown if any provided arguments are invalid. + /// Thrown if there are too many iterations to handle. public static void ForReductionCollapse((int, int) firstRange, (int, int) secondRange, Operations op, ref T reduce_to, ActionRef2 action, IScheduler schedule = null, uint? chunk_size = null) { ForAction forAction = new ForAction(action, new (int, int)[] { firstRange, secondRange }); @@ -426,6 +431,7 @@ public static void ForReductionCollapse((int, int) firstRange, (int, int) sec /// Thrown when not in a parallel region. /// Thrown when nested inside another worksharing region. /// Thrown if any provided arguments are invalid. + /// Thrown if there are too many iterations to handle. public static void ForReductionCollapse((int, int) firstRange, (int, int) secondRange, (int, int) thirdRange, Operations op, ref T reduce_to, ActionRef3 action, IScheduler schedule = null, uint? chunk_size = null) { ForAction forAction = new ForAction(action, new (int, int)[] { firstRange, secondRange, thirdRange }); @@ -460,6 +466,7 @@ public static void ForReductionCollapse((int, int) firstRange, (int, int) sec /// Thrown when not in a parallel region. /// Thrown when nested inside another worksharing region. /// Thrown if any provided arguments are invalid. + /// Thrown if there are too many iterations to handle. public static void ForReductionCollapse((int, int) firstRange, (int, int) secondRange, (int, int) thirdRange, (int, int) fourthRange, Operations op, ref T reduce_to, ActionRef4 action, IScheduler schedule = null, uint? chunk_size = null) { ForAction forAction = new ForAction(action, new (int, int)[] { firstRange, secondRange, thirdRange, fourthRange }); @@ -492,6 +499,7 @@ public static void ForReductionCollapse((int, int) firstRange, (int, int) sec /// Thrown when not in a parallel region. /// Thrown when nested inside another worksharing region. /// Thrown if any provided arguments are invalid. + /// Thrown if there are too many iterations to handle. public static void ForReductionCollapse((int, int)[] ranges, Operations op, ref T reduce_to, ActionRefN action, IScheduler schedule = null, uint? chunk_size = null) { ForAction forAction = new ForAction(action, ranges);