TLDR: Is there a way to tell nvcc to a .os file as a .o file?
I’m using nvcc on linux as part of a scons build system. The output of the compilation step of this build system is a .os file, which under the hood looks a lot like a .o file.
$ file example.os
example.os: ELF 64-bit LSB relocatable, x86_64, version 1 (SYSV), not stripped
The .os was produced with nvcc -rdc=true -c ...
When I pass the .os file back into nvcc for the linking step, nvcc -dlink example.os ... I get the error
nvcc fatal : Don't know what to do with example.os
Is there a way to tell nvcc to treat a .os file as a .o file?