Linking a ptx

Hello,

I’ve two source file, one is the main entry point of my cuda project and the other one is the kernel.
For profiling purpose I’d like to link my modified version of a generated ptx file against the main object.
I don’t know how to execute the linking phase.

Anyone could help me ?

compiling

nvcc -ptx main_kernel.cu
nvcc -c main.cu

linking ?

nvcc ???

thanks