Hi All,
I have problem with linking a library.
When I’m linking the library with gcc for a test file its compiling and working properly. The command is here
gcc test.c -L…/sparse_matrix_converter/ -lsparse_matrix_converter -L …/bebop_util/ -lbebop_util -I…/sparse_matrix_converter/include/ -I…/bebop_util/include/
When I’m linking the library with nvcc its giving me the following errors
The functions in the error are from the library I’m trying to link.
I think the problem is with linking the library.
The nvcc command is
nvcc main.cu -L…/sparse_computations/sparse_matrix_converter/ -lsparse_matrix_converter -L…/sparse_computations/bebop_util/ -lbebop_util -I /home/kiran/NVIDIA_GPU_Computing_SDK/C/cudaworkspace/sparse_computations/ bebop_util/include/ -I /home/kiran/NVIDIA_GPU_Computing_SDK/C/cudaworkspace/sparse_computations/ sparse_matrix_converter/include/ -I /home/kiran/NVIDIA_GPU_Computing_SDK/shared/inc/ -I /home/kiran/NVIDIA_GPU_Computing_SDK/C/common/inc/ -arch sm_13 -L/$HOME/NVIDIA_GPU_Computing_SDK/C/lib -lcutil_x86_64
Can someone please tell me how to link it properly with nvcc.
Thanks and regards,
M. Kiran Kumar.