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) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -