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

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -