天天看点

VS2010 OpenCL运行环境配置

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中设置。

    

VS2010 OpenCL运行环境配置

  (2)添加外部依赖OpenCL.lib

    添加OpenCL.lib所在路径

    在项目->properties ->Configuration Proprtties->Linker->General中lib路径和Enable Incremental Linking。

     

VS2010 OpenCL运行环境配置

    选择路径中的OpenCL.lib

    在项目->properties ->Configuration Proprtties->Linker->Input中设置。

VS2010 OpenCL运行环境配置

4.Helloworld截图

VS2010 OpenCL运行环境配置