Trouble working with CUSPARSE

后端 未结 1 1767
耶瑟儿~
耶瑟儿~ 2021-01-29 04:53

As I wanted to compile my program (using Cusparse) the following lines appeared:

tmp/tmpxft_00001048_00000000-13_matvec.o: In function main\': tmpxft_00001048_0000

相关标签:
1条回答
  • 2021-01-29 05:29

    You need to link with the cuSPARSE library. Since you're using Linux, adding -lcusparse to your nvcc command line should be sufficient.

    Note that you may also need to add the CUDA libraries path to your LD_LIBRARY_PATH environment variable if the system fails to find the linked libraries when executing.

    0 讨论(0)
提交回复
热议问题