Library/ManagedCuda/PrimaryContext.cs
/// <summary>
/// Destroy all allocations and reset all state on the primary context
/// <para/>
/// Explicitly destroys and cleans up all resources associated with the current
/// device in the current process.
/// <para/>
/// Note that it is responsibility of the calling function to ensure that no
/// other module in the process is using the device any more. For that reason
/// it is recommended to use ::cuDevicePrimaryCtxRelease() in most cases.
/// However it is safe for other modules to call ::cuDevicePrimaryCtxRelease()
/// even after resetting the device.
/// </summary>
/// <param name="deviceID">Device for which primary context is destroyed</param>
Destroy all allocations and reset all state on the primary context

Explicitly destroys and cleans up all resources associated with the current
device in the current process.

Note that it is responsibility of the calling function to ensure that no
other module in the process is using the device any more. For that reason
it is recommended to use ::cuDevicePrimaryCtxRelease() in most cases.
However it is safe for other modules to call ::cuDevicePrimaryCtxRelease()
even after resetting the device.
Destroy all allocations and reset all state on the primary context Explicitly destroys and cleans up all resources associated with the current device in the current process . Note that it is responsibility of the calling function to ensure that no other module in the process is using the device any more . For that reason it is recommended to use :: cuDevicePrimaryCtxRelease () in most cases . However it is safe for other modules to call :: cuDevicePrimaryCtxRelease () even after resetting the device .
public static void Reset(int deviceID)
		{
			CUdevice device = GetCUdevice(deviceID);
			Reset(device);
		}
public static void Reset ( int deviceID ) { CUdevice device = GetCUdevice ( deviceID ) ; Reset ( device ) ; }
Destroy all allocations and reset all state on the primary context
Destroy all allocations and reset all state on the primary context
deviceID
int
Device for which primary context is destroyed
Device for which primary context is destroyed