Dispose GPU resources safely
This commit is contained in:
1 parent
c05cb04a5c
commit
77fbbceeec
1 file changed
+1
-2
@@ -78,10 +78,9 @@ public class MersenneNumberResidueGpuTester(bool useGpuOrder)
|
|||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
ArrayPool<ulong>.Shared.Return(orderArray);
|
ArrayPool<ulong>.Shared.Return(orderArray);
|
||||||
}
|
|
||||||
|
|
||||||
orderBuffer.Dispose();
|
orderBuffer.Dispose();
|
||||||
gpuLease.Dispose();
|
gpuLease.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user