Results 1 to 2 of 2

Thread: OpenCL (CUDA v5) and Visual Studio express 2010

Hybrid View

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    7

    OpenCL (CUDA v5) and Visual Studio express 2010

    Hi All,

    Can someone help me to configure Visual Studio Express 2010 to compile/run my OpenCL applications? I'm using CUDA v5.0.

    I've already set the include and lib directories in the Project Properties but I had no success.

    Thanks in advance!

  2. #2
    Newbie
    Join Date
    May 2013
    Posts
    2

    OpenCL cofiguration for Visual Studio on CUDA v5.0

    You might have included different path in the "Additional Include Directories" in the project properties.

    For cuda v5.0 do ensure that your additional include direcories path is "\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" not "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include\CL"

    Rest other configurations could be as it is referenced in other links on the internet.

    As a matter of fact, you could add complete path to the opencl library in the Additional Library Dependencies i.e. "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\lib\Win32".
    Also include the "opencl.lib" in the additional dependencies under Linker->Input in the project properties.

    Note: All the above configuration was done on Windows 7 Enterprise Edition and Microsoft Visual C++ 2010 Express.

Similar Threads

  1. opencl can be used in visual studio 2010?
    By opencl_beginner in forum OpenCL
    Replies: 6
    Last Post: 06-06-2011, 03:52 PM
  2. openCL using visual studio 2008..
    By phoebe0105 in forum OpenCL
    Replies: 0
    Last Post: 04-19-2010, 09:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •