Add post-copy synchronization for residue GPU scan

This commit is contained in:
Marek Lemańczyk committed 2025-09-11 02:09:40 +02:00
1 parent f17f83e326
commit 4e53874713
1 file changed
+1
@@ -58,6 +58,7 @@ public class MersenneNumberResidueGpuTester(bool useGpuOrder)
accelerator.Synchronize();
orderBuffer.View.CopyToCPU(ref MemoryMarshal.GetReference(orders), currentSize);
accelerator.Synchronize();
if (!Volatile.Read(ref isPrime))
{
break;