computablee / DotMP

A collection of powerful abstractions for parallel programming in .NET with an OpenMP-like API.
https://computablee.github.io/DotMP/
GNU Lesser General Public License v2.1
29 stars 7 forks source link

Add checks for overflow in schedulers #124

Closed computablee closed 11 months ago

computablee commented 11 months ago

Which issue are you addressing?

Closes #115

How have you addressed the issue?

There are now checked { } regions around relevant parts of the schedulers, and a try/catch to rethrow an InternalSchedulerException if an overflow is detected.

How have you tested your patch?

Boundary_parallelfor_should_except has been added to the tests, and passes.

codecov[bot] commented 11 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (4203bdd) 99.25% compared to head (94200ed) 99.26%. Report is 5 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #124 +/- ## ========================================== + Coverage 99.25% 99.26% +0.01% ========================================== Files 12 12 Lines 1341 1360 +19 Branches 146 146 ========================================== + Hits 1331 1350 +19 Misses 5 5 Partials 5 5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.