I’m trying to use Haskell to call CUDA code over a foreign function interface. This means that I’m compiling using GHC and GHC is using NVCC to link the object files. Typically, GCC is used in this step.
Under the hood, GHC passes “undefined symbols” to the linker:
which is an option that NVCC doesn’t support. I know nothing about linking with undefined symbols, but I assume GHC needs these or it wouldn’t put them there. Is there an equivalent option for NVCC or a standard workaround here?
You can see my original question at http://stackoverflow.com/questions/19957104/using-ghc-with-nvcc/19958670.