0

私の 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() はかなり厄介になりました。これらの間違いは何らかの形でそれに関連している可能性がありますか? プログラムをいくつかの部分に分割する必要がありますか?

4

1 に答える 1

0

リンカは、これらの関数の定義が欠落していると言っています。これらの関数を定義しましたか? 名前のスペルは正しいですか?

//jk

于 2013-03-10T18:36:49.607 に答える