当我想编译我的程序(使用 Cusparse)时,出现了以下几行:
tmp/tmpxft_00001048_00000000-13_matvec.o:在函数main':
tmpxft_00001048_00000000-1_matvec.cudafe1.cpp:(.text+0x6d5): undefined reference tocusparseCreate中
同样的结果不仅适用于 cusparseCreate,也适用于 cusparseCreateMatDescr、cusparseSetMatType、cusparseSetMatIndexBase、cusparseXcoo2csr、cusparseDsctr、cusparseDcsrmv_v2、cusparseDestroyMatDescr 和 cusparseDestroy。这是什么意思?
cuda ×1