I have written a basic C# program that includes a data type for handling complex numbers. I need to send these complex numbers to a DLL that I’ve written in CUDA in order to have the GPU crunch some numbers.
The data type for complex numbers is something that I wrote and is pretty basic. In an attempt to keep the two languages happy, I essentially ported the data structure over to C and attempted to pass the same data structure from C# to the CUDA DLL… I’m sure some of you are giggling at this… :) Long story short, this does not work. I started diving into void pointers, but I think I’m just stabbing into the dark at this point.
Does anyone have any words of wisdom on doing such a thing?