cuda - managedCuda C# free GPU Memory -


I am using C # with managedcuda lib, I assign memory on GPU with this command: CudaDeviceVariable name = New CudaDeviceVariable (length); And it works fine. But I can not find the command to free it from the GPU.

Thank you in advance) =

Use names Conflict (); - CudaDeviceVariable is a IDisposable .

It also means that you can use the syntax of this work:

 Use  (var name = new CudaDeviceVariable (length)) {// work }    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -