1.安裝AMD GPU顯卡驅動(安裝后重啟)
13-12_win7_win8_64_dd_ccc_whql.exe
2.安裝AMD OpenCL SDK(安裝后重啟)
AMD-APP-SDK-v2.9-Windows-641.exe
3.配置VS2010 OpenCL環境
(1)添加外部頭文件
在項目->properties ->Configuration Proprtties->C/C++->General中設置。
(2)添加外部依賴OpenCL.lib
添加OpenCL.lib所在路徑
在項目->properties ->Configuration Proprtties->Linker->General中lib路徑和Enable Incremental Linking。
選擇路徑中的OpenCL.lib
在項目->properties ->Configuration Proprtties->Linker->Input中設置。
4.Helloworld截圖