Sorry to come back to my question, but:
The solution up to the previous reply did work, but my understanding does not.
-I have this “nice” vcxproj file which generates a working .obj file, which contains both, a host section and cubin section.
-I want to change that vcxproj file, so that it generates two output files instead:
- a working host-side only object file
- a separate cubin file, usable for cuModuleLoad .
I found this documentation in NVCC doc (3.2.1):
-cubin: Compile all .cu/.ptx input files to device-only .cubin files. This step discards the host code for each .cu input file.
Which could be an answer for half the question; I still need the other half.