get cuda code and c code to link