12 Replies Latest reply on Jan 19, 2010 10:31 AM by Raistmer

    What required to see AMD OpenCL platform on host?

    Raistmer
      There was nVida platform before

      I replaced 9400GT card with HD4870 and installed Catalyst 12 hotfix driver pack (completely). But CLInfo.exe still shows nVidia's OpenCL platform instead of AMD one.
      What I should to to switch to AMD platform now?

      S:\OpenCL\ATI>CLInfo.exe
      Number of platforms: 1
      Plaform Profile: FULL_PROFILE
      Plaform Version: OpenCL 1.0
      Plaform Name: NVIDIA
      Plaform Vendor: NVIDIA Corporation
      Plaform Extensions: cl_khr_byte_addressable_store cl_nv_compiler_options cl_nv_device_attribute_query


      Plaform Name: NVIDIA
      Number of devices: 0


      EDIT: And here output from nVidia's deviceQuery sample:

      S:\OpenCL>oclDeviceQuery.exe
      oclDeviceQuery.exe Starting...

      OpenCL SW Info:

      CL_PLATFORM_NAME: NVIDIA
      CL_PLATFORM_VERSION: OpenCL 1.0
      OpenCL SDK Version: 4788711


      OpenCL Device Info:

      Error -1 in clGetDeviceIDs call !!!

      oclDeviceQuery, Platform Name = NVIDIA, Platform Version = OpenCL 1.0 , SDK Version = 4788711, NumDevs =

      System Info:

      Local Time/Date = 2:7:3, 1/19/2010
      CPU Arch: 0
      CPU Level: 6
      # of CPU processors: 4
      Windows Build: 6002
      Windows Ver: 6.0


      TEST FAILED !!!
        • What required to see AMD OpenCL platform on host?
          omkaranathan

          Raistmer,

          Please make sure that you have removed all traces of nVidia SDK and drivers before installing Stream SDK.

          • What required to see AMD OpenCL platform on host?
            Raistmer
            Well, complete removal could be just last resort. It's my dev host, I replace nVidia and AMD cards pretty often... Does it should mean that SDKs from these 2 vendors no way can co-exist? It would be very sad news.
            Maybe just some registry string change would be enough ?
              • What required to see AMD OpenCL platform on host?
                nou

                did you install ATI Stream SDK?

                  • What required to see AMD OpenCL platform on host?
                    nou

                    well i think AMD create instaler with OpenCL runtime which enable it on GPU/CPU. maybe with upcoming release of catalyst we see that OpenCL is part of catalyst drivers. can someone from AMD to this comment.

                      • What required to see AMD OpenCL platform on host?
                        omkaranathan

                        Raistmer,

                        AMD OpenCL libraries come with StreamSDK, so you have to install Stream SDK to use AMD platform.

                        Both the SDK's can co-exist. You need to make sure that the PATH is set to look for the correct binaries depending on the platform.

                          • What required to see AMD OpenCL platform on host?
                            Raistmer
                            Originally posted by: omkaranathan

                            Raistmer,




                            AMD OpenCL libraries come with StreamSDK, so you have to install Stream SDK to use AMD platform.




                            Both the SDK's can co-exist. You need to make sure that the PATH is set to look for the correct binaries depending on the platform.



                            Unfortunately, after complete ATI Stream SDK v2 installation and host reboot situation didn't change. nVidia's platform visible (with 0 devices of course) but AMD one - doesn't.
                            What env variables related to ATI stream I have now:
                            ATISTREAMSDKROOT=C:\Program Files\ATI Stream\
                            ATISTREAMSDKSAMPLESROOT=D:\R\ATI Stream\
                            Path=D:\R\ATI Stream\bin\x86;C:\Program Files\ATI Stream\bin\x86;P:\bin\AMD\AMD Brook+ 1.3.0_beta\sdk\lib;P:\bin\Intel\VTune\CGGlbCache;P:\bin\Intel\VTune\Analyzer\Bin;P:\bin\Intel\VTune\Shared\Bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;P:\bin;C:\Program Files\Intel\DMIX;P:\bin\ATI\ATI.ACE\Core-Static;p:\bin\boinc;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Intel\Shared Files\IDVC;P:\bin\AMD\Stream KernelAnalyzer 1.1\;P:\bin\AMD\CodeAnalyst\bin

                            That is, no nVidia SDK in path at all, but....
                              • What required to see AMD OpenCL platform on host?
                                Raistmer
                                Well, when I copied whole "C:\Program Files\ATI Stream\bin\x86\" content into directory from where I start apps, I got AMD platform visible.

                                Current output of CLinfo:
                                Number of platforms: 1
                                Plaform Profile: FULL_PROFILE
                                Plaform Version: OpenCL 1.0 ATI-Stream-v2.0.0
                                Plaform Name: ATI Stream
                                Plaform Vendor: Advanced Micro Devices, Inc.


                                Plaform Name: ATI Stream
                                Number of devices: 2
                                Device Type: CL_DEVICE_TYPE_CPU
                                Device ID: 4098
                                Max compute units: 4
                                Max work items dimensions: 3
                                Max work items[0]: 1024
                                Max work items[1]: 1024
                                Max work items[2]: 1024
                                Max work group size: 1024
                                Preferred vector width char: 16
                                Preferred vector width short: 8
                                Preferred vector width int: 4
                                Preferred vector width long: 2
                                Preferred vector width float: 4
                                Preferred vector width double: 0
                                Max clock frequency: 2660Mhz
                                Address bits: 32
                                Max memeory allocation: 536870912
                                Image support: No
                                Max size of kernel argument: 4096
                                Alignment (bits) of base address: 1024
                                Minimum alignment (bytes) for any datatype: 128
                                Single precision floating point capability
                                Denorms: Yes
                                Quiet NaNs: Yes
                                Round to nearest even: Yes
                                Round to zero: No
                                Round to +ve and infinity: No
                                IEEE754-2008 fused multiply-add: No
                                Cache type: Read/Write
                                Cache line size: 64
                                Cache size: 65536
                                Global memory size: 1073741824
                                Constant buffer size: 65536
                                Max number of constant args: 8
                                Local memory type: Global
                                Local memory size: 32768
                                Profiling timer resolution: 1
                                Device endianess: Little
                                Available: Yes
                                Compiler available: Yes
                                Execution capabilities:
                                Execute OpenCL kernels: Yes
                                Execute native function: No
                                Queue properties:
                                Out-of-Order: No
                                Profiling : Yes
                                Platform ID: 01E21434
                                Name: Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz
                                Vendor: GenuineIntel
                                Driver version: 1.0
                                Profile: FULL_PROFILE
                                Version: OpenCL 1.0 ATI-Stream-v2.0.0
                                Extensions: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store
                                Device Type: CL_DEVICE_TYPE_GPU
                                Device ID: 4098
                                Max compute units: 10
                                Max work items dimensions: 3
                                Max work items[0]: 256
                                Max work items[1]: 256
                                Max work items[2]: 256
                                Max work group size: 256
                                Preferred vector width char: 16
                                Preferred vector width short: 8
                                Preferred vector width int: 4
                                Preferred vector width long: 2
                                Preferred vector width float: 4
                                Preferred vector width double: 0
                                Max clock frequency: 750Mhz
                                Address bits: 32
                                Max memeory allocation: 134217728
                                Image support: No
                                Max size of kernel argument: 1024
                                Alignment (bits) of base address: 32768
                                Minimum alignment (bytes) for any datatype: 128
                                Single precision floating point capability
                                Denorms: No
                                Quiet NaNs: Yes
                                Round to nearest even: Yes
                                Round to zero: No
                                Round to +ve and infinity: No
                                IEEE754-2008 fused multiply-add: No
                                Cache type: None
                                Cache line size: 0
                                Cache size: 0
                                Global memory size: 134217728
                                Constant buffer size: 65536
                                Max number of constant args: 8
                                Local memory type: Global
                                Local memory size: 16384
                                Profiling timer resolution: 1
                                Device endianess: Little
                                Available: Yes
                                Compiler available: Yes
                                Execution capabilities:
                                Execute OpenCL kernels: Yes
                                Execute native function: No
                                Queue properties:
                                Out-of-Order: No
                                Profiling : Yes
                                Platform ID: 01E21434
                                Name: ATI RV770
                                Vendor: Advanced Micro Devices, Inc.
                                Driver version: CAL 1.4.515
                                Profile: FULL_PROFILE
                                Version: OpenCL 1.0 ATI-Stream-v2.0.0
                                Extensions:

                                But why looking in path didn't work? No idea....
                                • What required to see AMD OpenCL platform on host?
                                  omkaranathan

                                  IIRC, nVidia sdk installs OpenCL libraries in system32 folder. Could you do a search in the system to make sure?  

                                    • What required to see AMD OpenCL platform on host?
                                      Raistmer
                                      Originally posted by: omkaranathan

                                      IIRC, nVidia sdk installs OpenCL libraries in system32 folder. Could you do a search in the system to make sure?  



                                      yes, it did that!
                                      opencl.dll in system32 folder (nVidia OpenCL 1.0 Beta driver)... not very nice move for inter-vendors compatibility indeed...
                                      But it says "beta" - maybe it was leaved by SDK 3.0 beta and released SDK 2.3 just didn't remove it?... anyway it completely explains what going on on my host, thanks again!
                          • What required to see AMD OpenCL platform on host?
                            Raistmer
                            No, only Catalyst 12 hotfix installed. nVidia SDK 2.3 was installed.
                            But how app supposed to run on consumer hosts where will be no complete SDK for sure ??
                            • What required to see AMD OpenCL platform on host?
                              Raistmer
                              Thanks!
                              Will try to install AMD Stream SDK 2 on this host and report if situation improved.
                              But new question arised then: if Catalyst driver installation is not enough to use (not to develop, but to use already built application) OpenCL based application, how consumers can use application?
                              I'm sure that installation of full SDK will be not an option for many of them. Does some smaller set of only needed runtime DLLs exist or can be prepared? What binaries are needed beside Catalyst drivers of proper version itself to run OpenCL based apps?
                              (for example, for CUDA-based app one need cudart.dll and cufft.dll if CUFFT lib used, for Brook+ based app one needed brook.dll )....