I’ve been playing with CUDA, outside of UE4, and using the Thrust library with C++ to write CUDA functions, in a file that is compiled to a .cu file. I want to use this in UE4 for parallel processing on large arrays (and this works as a standalone app).
I am new to UE4 and still feeling my way around. I am using VS2015 with UE4 and have managed to write C++ scripts in the engine, and pass variables beween them and blueprints. So far so good.
My question is: How can I call/use the functions in the .cu file from a C++ file in UE4?
I mean, although the code looks very much like C++, and I can write and run regular C++ code from within the .cu file (compiled to a windows console from VS2015), it is compiled to a .cu file, and from there on I am lost as to how I would use the CUDA function(s) I have written within UE4.
Is there a way to reference a .cu file’s functions from a C++ file in UE4?
Or do I need to make a DLL from the .cu and then access it from a C++ file in UE4?
Anyone know of an example in UE4 of what I am trying to do?
I don’t really understand compiling, so any source of simple, practical information that might help me get going, rather than a deep, exhaustive course on compiling, would be appreciated.