Add post-copy synchronization for residue GPU scan
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user