diff --git a/ManagedCUDA/CudaContext.cs b/ManagedCUDA/CudaContext.cs index 59c492e..638ad4a 100644 --- a/ManagedCUDA/CudaContext.cs +++ b/ManagedCUDA/CudaContext.cs @@ -60,6 +60,7 @@ public enum DirectXVersion protected int _deviceID; /// protected bool disposed; + public bool IsDisposed { get { return disposed; } protected set { disposed = value; } } private bool _contextOwner; //Indicates if this CudaContext instance created the wrapped cuda context and should be destroyed while disposing. #region Constructors diff --git a/NVRTC/CudaRuntimeCompiler.cs b/NVRTC/CudaRuntimeCompiler.cs index 46443af..aa6a7e1 100644 --- a/NVRTC/CudaRuntimeCompiler.cs +++ b/NVRTC/CudaRuntimeCompiler.cs @@ -15,6 +15,9 @@ public class CudaRuntimeCompiler : IDisposable { nvrtcProgram _program; bool disposed = false; + + public bool IsDisposed { get { return disposed; } protected set { disposed = value; } } + nvrtcResult res; #region Contructors ///