On Sunday 2023-03-26 14:33, Labeeb Asari wrote:
>
>Basically : compile .c source files with gcc, .cu files with nvcc and
>finally link them together with gcc.
>
>I've tried adding a rule to handle .cu files differently and it does create
>object files for it separately. However while linking, lib
Background
- I've an existing C library which uses autotools as the build system.
- I want to add some Cuda source files(.cu) to this library.
- Unlike C source files, .cu files are compiled by a different compiler
(nvcc).
Here's an example of what I'm trying to do :
https://github.