Greetings. Let’s say that I have two c++ files: first.C and second.C. Normally, I can compile these two files as follows.
icpc -o first first.C second.C
Now, I want to add cublas routines in second.C. How should I proceed? I tried this and failed.
mv second.C second.cu
nvcc -c second.cu // creates second.o
icpc -c first.C // creates first.o
icpc -o first first.o second.o