I’m compiling a .cu to a .o with nvcc, I use the C functions defined into the .cu in fortran files.
And then I’ve got an undefined reference. ifort is expecting something like “my_c_function_”.
Looking in the .o with nm, I see that my function that I named “my_c_function_” in the .cu is renamed
_Z22my_c_function_PiS_S_S_S_S_S_PfS0_S_S_S_S_S_S_S , etc.
or some other weird names.
Does anyone know the reason of this and have an idea about how I could solve this problem?