私の cuSparse プログラムは正しく動作しましたが、修正後、多くの間違いがありました:
/tmp/tmpxft_000014cd_00000000-14_Sample2.0.o: In function `main':
tmpxft_000014cd_00000000-3_Sample2.0.cudafe1.cpp:(.text+0xb24): undefined reference to `cusparseCreate'
tmpxft_000014cd_00000000-3_Sample2.0.cudafe1.cpp:(.text+0xb68): undefined reference to `cusparseCreateMatDescr'
tmpxft_000014cd_00000000-3_Sample2.0.cudafe1.cpp:(.text+0xbb4): undefined reference to `cusparseSetMatType'
tmpxft_000014cd_00000000-3_Sample2.0.cudafe1.cpp:(.text+0xbc8): undefined reference to `cusparseSetMatIndexBase'
tmpxft_000014cd_00000000-3_Sample2.0.cudafe1.cpp:(.text+0xc60): undefined reference to `cusparseScsrmv_v2'
どういう意味ですか?プログラム内の関数 main() はかなり厄介になりました。これらの間違いは何らかの形でそれに関連している可能性がありますか? プログラムをいくつかの部分に分割する必要がありますか?