sm_10.cubin ? Strange cubin file name in 64 bit machine.

Dear all.

This happend under Linux platform.

I know if nvcc compile a source file (calls, it generates foo.cubin.
This is right in 32bit machine under certain setting.

But I moved to 64 bit machine and keep the same setting (except -m64 flag during compilation).
The cubin file name now is

How can I keep the same filename?



That’s an interesting change. But it’s a useful one to remind you that a cubin is architecture-specific. Your sm_10 cubin might not run on a sm_20 machine, and certainly sm_13 won’t be backward-compatible with G80.

In any case, just use the -o flag to name your output file whatever you want.