GPU accelerator recycled for better performance.
This commit is contained in:
1 parent
fdc2da7dae
commit
735bfa1557
2 files changed
+9
-3
No files matched your search
@@ -3,6 +3,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Globalization;
|
||||
using System.Runtime.InteropServices;
|
||||
using PerfectNumbers.Core.Gpu.Accelerators;
|
||||
|
||||
namespace PerfectNumbers.Core;
|
||||
|
||||
@@ -302,10 +303,12 @@ public static class MersenneNumberDivisorByDivisorTester
|
||||
}
|
||||
|
||||
Console.WriteLine($"Task finished for range {rangeStart}");
|
||||
Pow2MontgomeryAccelerator.DisposeAll();
|
||||
},
|
||||
CancellationToken.None,
|
||||
TaskCreationOptions.DenyChildAttach,
|
||||
scheduler);
|
||||
|
||||
}
|
||||
|
||||
startGate.Set();
|
||||
|
||||
Reference in new issue
Block a user