[問題] CUDA在VS 2008 compiler無法通過
開發平台(Platform): (Ex: VC++, Gcc, Linux, ...)
VS 2008
額外使用到的庫(Library Used) (Ex: OpenGL, ...)
CUDA、Nsight
問題(Question):
Nsight的sample "Matrix Multiply"中的"matrixMul_kernel.cu"原本上面有
紅色的符號,http://tinyurl.com/37bnv2z (如圖中bicubicTexture_ketnel.cuh一樣)
在我移掉他再加入後,紅色的符號不見,compiler也不會過
餵入的資料(Input):
Nsight的sample "Matrix Multiply"
預期的正確結果(Expected Output):
正常的compiler過且可以debug
錯誤結果(Wrong Output):
error LNK2005,找到有一或多個已定義的符號
補充說明(Supplement):
原本的kernel file名稱上有一個紅色符號,http://tinyurl.com/37bnv2z
我移除kernel file後再用"加入" - "現有項目"的方式將kernel file加入,紅色的
符號消失,然後就出現error,想請問為什麼檔案上面會有紅色的符號,要如何加入
檔案才會有那個符號出現
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.115.51.110
※ 編輯: finalest2001 來自: 140.115.51.110 (01/05 10:38)
※ 編輯: finalest2001 來自: 140.115.51.110 (01/05 11:00)
※ 編輯: finalest2001 來自: 140.115.51.110 (01/05 11:16)
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章
11
38