cuda - Linking an extra object file -
i using qmake manage build of cuda project. i'd use separate compilation feature of cuda 5.0, means device code must linked before being linked rest of code.
i've managed intermediate linking step adding .pro
file:
qmake_pre_link = $$cuda_dir/bin/nvcc $$cuda_gencode -dlink $(objects) -o dlink.o
this creates object file called dlink.o
, should added array of objects linked g++, don't know how accomplish this.
peeking makefile, notice linker passed additional variable called objcomp
, not defined , can't find way access through qmake.
add line .pro
file:
libs += dlink.o
Comments
Post a Comment