2 Replies Latest reply on May 7, 2013 1:37 AM by himanshu.gautam

    OpenCL on windows: Basics


      i have worked only with C till date , so my programming scope is very narrow. for my project i need to work on openCl.

      i know this is a very basic question... but i have been at it for a week now and still i have no clue as to what is to be done

      i've tried a lot of forums n books... but they were of no help coz similar questions were unanswered

      please help me.


      this is where i stand,


      1. downloaded the AMD APP SDK V.2.8

      2. installed visual studio 2012 (i've never worked with VS)

      3. little knowledge of how an openCL program is structured

      4. installed codexl


      this is what i need to know


      1. i compile host/c++ using visual studio and cl/kernel using kernelanalyzer.. is this right?


      2. how do i run them together?


      3. codexl requires an .exe to profile... how do i create an executable from the host n kernel i have?


      P.S: im using the samples from amp app sdk

        • Re: OpenCL on windows: Basics

          1 no

          2 go to AMDAPPSDKSAMPLESROOT\samples\opencl\cl\app\HelloWorld

          3 go to AMDAPPSDKSAMPLESROOT\samples\opencl\cl\app\HelloWorld


          also AMD APP\docs\AMD_APP_SDK_Getting_Started_Guide_v2.8.pdf will help you

          1 of 1 people found this helpful
            • Re: OpenCL on windows: Basics

              The EXEs get created in Bin folder.

              If on DOS, after compilation from Visual Studio (say Hello world sample)...Just go to AMDAPPSDKSAMPLESROOT and say "dir *.exe /s". that will let you know what all EXEs are available (from the APP SDK).

              Locate helloworld n execute.

              Change Helloworld n execute and see how things work..

              Good luck!