Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ManagedCUDA/CudaContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public enum DirectXVersion
protected int _deviceID;
/// <summary/>
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
Expand Down
3 changes: 3 additions & 0 deletions NVRTC/CudaRuntimeCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
/// <summary>
Expand Down