[問題] CUDA在VS 2008 compiler無法通過

看板C_and_CPP (C/C++)作者 (小黑仔)時間15年前 (2011/01/05 10:07), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
開發平台(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)
文章代碼(AID): #1D8z9YIn (C_and_CPP)
文章代碼(AID): #1D8z9YIn (C_and_CPP)