Provide a way to use different Futhark backends(c, cuda, opencl) without the need to recompile fmpi
To use different Futhark backends, the library user needs to change the makefile and recompile the library. This isn't very practical to say the least.
There is different ways to do that:
- Compile a different library for each backend and let the user chose the one needed at compilation.
- Compile one library with all backend embeded and load the right one at runtime. Futhark provides a macro indicating which backend has been used at compilation(e.g.,
FUTHARK_BACKEND_C
for the C backend) to do that.
Edited by raphael.bach