Does 'code=sm_X' embed only binary (cubin) code, or also PTX code, or both?
I am little bit confused about the 'code=sm_X' option within the '-gencode' statement. An example: What does the NVCC compiler option -gencode arch=compute_13,code=sm_13 embed in the library ? Only the machine code (cubin code) for GPUs with CC 1.3, or also the PTX code for GPUs with CC 1.3 ? In the 'Maxwell compatibility guide', it is stated "Only the back-end target versions(s) specified by the 'code=' clause will be retained in the resulting binary". From that, I would infer that the given compiler option only embeds machine code for GPUs with CC 1.3 and no PTX code. This would mean that it