kunzmi / managedCuda

ManagedCUDA aims an easy integration of NVidia's CUDA in .net applications written in C#, Visual Basic or any other .net language.
Other
449 stars 80 forks source link

wrapper functions for CudaDNN's FindAlgorithm and GetAlgorithm functions added to CudaDNNContext #5

Closed MikulasZelinka closed 8 years ago

MikulasZelinka commented 8 years ago

Added wrappers for CudaDNNContext's functions that weren't wrapped yet. The functions were mostly of type {Get/Find}Convolution{Forward/Backward}Algorithm.

The original order of functions (based on CudaDNNNativeMethods) is preserved.

kunzmi commented 8 years ago

Thanks for your contribution! I modified it slightly so that it fits with the other managedCuda conventions (return the result instead of ref arguments...) and rearranged the code to separate the findXYZ methods from the type (float/double) dependent regions.

MikulasZelinka commented 8 years ago

Very nice, I like this approach much better than what I originally wrote (there only were void methods before but I hadn't realised that these actually were supposed not to return anything by design); thanks for the prompt response! :)