Results 1 to 7 of 7

Thread: opencl can be used in visual studio 2010?

  1. #1

    opencl can be used in visual studio 2010?

    Hi, everyone
    I wonder if opencl has a version for visual studio 2010? thanks!

  2. #2
    Member
    Join Date
    Mar 2010
    Location
    Raleigh, NC
    Posts
    55

    Re: opencl can be used in visual studio 2010?

    OpenCL is not tied to any one specific development platform, environment, etc. I would recommend you download either the NVIDIA or ATI GPU Computing SDKs and examine how they set up and organize their projects. They have solutions for Visual Studio 2005 and 2008, but I have not seen them for 2010 yet, but I know from personal experience that you can use 2010 with OpenCL.

  3. #3

    Re: opencl can be used in visual studio 2010?

    yes, you are right, thank you very much!

  4. #4
    Junior Member
    Join Date
    Apr 2011
    Posts
    10

    Re: opencl can be used in visual studio 2010?

    I'm personally using openCL on visual studio 2010 right now.

  5. #5
    Junior Member
    Join Date
    May 2011
    Posts
    1

    Re: opencl can be used in visual studio 2010?

    NVidia has released CUDA SDK 4.0rc2, which start support VS2010. I've been compiled OpenCL programs on VS2010 already.

  6. #6

    Re: opencl can be used in visual studio 2010?

    I am using AMD APP SDK 2.4 on Visual Studio 2010 Professional so it should work for you too!

  7. #7
    Junior Member
    Join Date
    Mar 2011
    Posts
    28

    Re: opencl can be used in visual studio 2010?

    Shortly: yes it can be used with Visual 2010.

    After installing sfuff from here http://developer.nvidia.com/cuda-toolkit-40
    you have to setup VisualStudio solution according to this tutorial http://opencl.codeplex.com/wikipage?...orials%20-%200.

    Write a little bit of code, do #include <CL\cl.h> and complile. Personally I think you will encounter problem with shrUtils / oclUtils. There is a big solution with a lot of projects included - called oclRelease I think but first try compiling shrUtils / oclUtils only. If there will be problem with "Stopwatch" class simply locate files which can not be found (these files exists somewhere in provided projects) and copy them to "common/src" folder - but which one - I don't remember exactly, probably C/common/src. Just check where are other files included in shrUtils/oclUtils and copy there missing files taken from other location. Now shrUtils/oclUtils should compile and it allows you to compile oclRelease if you want (be aware to fully compile it you need also Windows SDK/DirectX SDK).

    Sorry that my advices are not so precise but I wrote this post AFTER setting OpenCL in VS2010. Actually it was 30 minutes ago but I have bad memory

    Good luck.

Similar Threads

  1. Replies: 1
    Last Post: 05-15-2013, 01:57 AM
  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
  •