I am trying to make a .so file with the nvcc compiler. I basically took a code that was previously written for a linear CPU and re-wrote it for a GPU.
The compiler options I used to make this file with gcc were
gcc -fPIC -c filename.c -std=c99
gcc -shared -o filename.so filename.o
Now I am trying to do the same thing but with the new code for the gpu. I see that nvcc has a -shared option and I have tried many combinations of commands.
if my file is filename.cu what should I type in the command line to compile and link it to make filename.so ???