Compiling CUBLAS device code in CUDA 9.2 with -dc flag

As per title, I have been trying to compile cublas device linked code so that I can call the cublas library in my kernel. When I add that flag to nvcc though, the compiler does not seem to produce an executable. The file type itself is ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped if that helps.

You don’t build an executable with -dc

If you compile with -dc, the compiler will not produce an executable. That is a compile-only flag, not a compile-and-link flag. -rdc=true is a compile-and-link flag.