我想實現矩陣乘法使用OpenCL。我有一個ATI Radeon HD Radeon 5000系列顯卡。 這是我在網上找到的程序之一,但鏈接錯誤即將到來,我無法解決。與AMD打開CL
我試圖運行在這個網站 http://gpgpu-computing4.blogspot.in/2009/10/matrix-multiplication-3-opencl.html
我跟着從這個網站
http://www.guineacode.com/2010/linking-and-compiling-opencl/
建立我的Visual Studio項目中提到的代碼,但下面的錯誤來
error LNK2019: unresolved external symbol _oclLoadProgSource referenced in function _main
error LNK2019: unresolved external symbol _shrLogEx referenced in function "void __cdecl __shrCheckErrorEX(int,int,void (__cdecl*)(int),char const *,int)" ([email protected]@[email protected]@Z)
任何幫助將不勝感激
你可能沒有連接'OpenCL.lib'和'shrUtils.lib '。需要在您的項目中添加OpenCL庫作爲鏈接組件。不幸的是,我無法幫助如何在Visual Studio中做到這一點。對於'shrUtils',它可能更復雜 - AFAIK它是一個內部的NVIDIA OpenCL SDK組件,所以你可能需要獲得他們的SDK代碼並將它自己編譯到一個庫中,然後進行鏈接。 – talonmies 2012-03-07 09:35:49