push cuda context when checking capabilities (#2502)
This commit is contained in:
@@ -104,6 +104,7 @@ internal static class CudaHelper
|
||||
int minor = device.GetAttribute(CuDeviceAttribute.ComputeCapabilityMinor);
|
||||
|
||||
using var context = device.CreateContext();
|
||||
context.Push();
|
||||
|
||||
var encoders = new List<CudaCodec>();
|
||||
var decoders = new List<CudaDecoder>();
|
||||
|
||||
Reference in New Issue
Block a user