19 Replies Latest reply on Sep 11, 2010 3:05 PM by kasper93

    ERROR: Could not build OpenCL program!

    kasper93

      I installed cat 10.8 and stream 2.2 today and after that opencl doesn't work...

      In this tool http://www.ngohq.com/graphic-cards/16920-directcompute-and-opencl-benchmark.html error:
      http://img3.imagebanana.com/img/pxkdspnm/11.jpg

      In oclhashcat
      ERROR: clBuildProgram() -11

      I'm trying few catalyst version and stream v2.01 but every time same error. It work fine before, but now I can't fix it ;/ Help me

      Regards

        • ERROR: Could not build OpenCL program!
          sir.um

          Try checking out the build log. Add this to the code right after clBuildProgram();

           

          I personally use the C++ bindings, and haven't used C in a while. So someone please correct that code if it's wrong.

          Good Luck
          -Chris



           

          printf(clGetProgramBuildInfo(/* Program Variable */, /* device variable */, CL_PROGRAM_BUILD_LOG, 0, NULL, NULL));

            • ERROR: Could not build OpenCL program!
              genaganna

              Kasper93, 

                         Error -11 means there are compilation errors.  Please see buildlog info as sir.um said. 

                          Are you getting error for cpu or gpu?

                          Are you able run any sample coming from sdk?

                • ERROR: Could not build OpenCL program!
                  Meteorhead

                  I got the same error with same driver and SDK. The build log said:

                  "Internal compiler error

                  Please check if the system setup is correct."

                  Or something very similar

                  Edit: I got this message when compiling onto 5970 under Ubuntu 9.10

                    • ERROR: Could not build OpenCL program!
                      genaganna

                       

                      Originally posted by: Meteorhead I got the same error with same driver and SDK. The build log said:

                       

                      "Internal compiler error

                       

                      Please check if the system setup is correct."

                       

                      Or something very similar

                       

                      Edit: I got this message when compiling onto 5970 under Ubuntu 9.10

                       

                      Are you getting same error for all samples? Are you able run samples on CPU?  Are you able run any cal samples?

                    • ERROR: Could not build OpenCL program!
                      kasper93

                      In Stream KernelAnalyzer:

                      http://img3.imagebanana.com/img/juelmvn9/CL.png

                      When I run any sample:

                                              BUILD LOG
                       ************************************************
                      Internal error: Compilation init failed.
                       ************************************************
                      Error: clBuildProgram failed. Error code : CL_BUILD_PROGRAM_FAILURE


                      Sorry, but I'm not advanced user. I think it's something wrong with stream installation, but I don't know what.

                        • ERROR: Could not build OpenCL program!
                          genaganna

                           

                          Originally posted by: kasper93 In Stream KernelAnalyzer:

                           

                          http://img3.imagebanana.com/img/juelmvn9/CL.png When I run any sample:

                                                  BUILD LOG  ************************************************ Internal error: Compilation init failed.  ************************************************ Error: clBuildProgram failed. Error code : CL_BUILD_PROGRAM_FAILURE


                           

                          Sorry, but I'm not advanced user. I think it's something wrong with stream installation, but I don't know what.

                           

                          Are you getting error for cpu or gpu?  Are you able run any sample coming from sdk?

                          Could you please uninstall your SDK and reinstall? Before reinstalling remove all files in side   Program Files\ATI Stream folder and /My Documents/ATI Stream folder.

                            • ERROR: Could not build OpenCL program!
                              Meteorhead

                              I get the following message when compiling onto both gpu and cpu. All tests produce this output, except for PCIeBandwidth, which of course does not compile a kernel.

                              I now have Ubuntu 10.04 , Catalyst 10.8 , SDK 2.2 , nou's package

                              nou's pavkage seemed to be missing clc installed in /bin/xx86_64, so I put a symlink there pointing to /usr/local/bin/x86_64/clc which is the place where nou's package installs. Could it be that something else is missing that the compiler can only tell this way?

                              Edit: CAL tests work fine, FindNumDevices return correct number (6), and CreateContext exits correctly.

                              BUILD LOG ************************************************ Internal error: Link failed. Make sure the system setup is correct. ************************************************

                              • ERROR: Could not build OpenCL program!
                                kasper93

                                 

                                Originally posted by: genaganna
                                Originally posted by: kasper93 In Stream KernelAnalyzer:

                                 

                                 

                                 

                                http://img3.imagebanana.com/img/juelmvn9/CL.png When I run any sample:

                                                        BUILD LOG  ************************************************ Internal error: Compilation init failed.  ************************************************ Error: clBuildProgram failed. Error code : CL_BUILD_PROGRAM_FAILURE


                                 

                                 

                                 

                                Sorry, but I'm not advanced user. I think it's something wrong with stream installation, but I don't know what.

                                 

                                 

                                 

                                 

                                Are you getting error for cpu or gpu?  Are you able run any sample coming from sdk?

                                 

                                Could you please uninstall your SDK and reinstall? Before reinstalling remove all files in side   Program Files\ATI Stream folder and /My Documents/ATI Stream folder.

                                 

                                 



                                Both cpu and gpu. Same error for every opencl samples. I reinstalled and still doesn't work. It something deeper.

                                %ATISTREAMSDKROOT%=
                                C:\Program Files (x86)\ATI Stream\

                                %ATISTREAMSDKSAMPLESROOT%=
                                C:\Users\Kacper\Documents\ATI Stream\

                                %path%=
                                C:\Users\Kacper\Documents\ATI Stream\bin\x86_64;C:\Users\Kacper\Documents\ATI Stream\bin\x86;C:\Program Files (x86)\ATI Stream\bin\x86_64;C:\Program Files (x86)\ATI Stream\bin\x86;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;E:\kacper\perl\site\bin;E:\kacper\perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\GNU\GnuPG;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\ATI Stream\Tools\Stream KernelAnalyzer 1.6\


                                  • ERROR: Could not build OpenCL program
                                    genaganna

                                     

                                    Originally posted by: kasper93
                                    Originally posted by: genaganna
                                    Originally posted by: kasper93 In Stream KernelAnalyzer:

                                     

                                    http://img3.imagebanana.com/img/juelmvn9/CL.png When I run any sample:

                                                            BUILD LOG  ************************************************ Internal error: Compilation init failed.  ************************************************ Error: clBuildProgram failed. Error code : CL_BUILD_PROGRAM_FAILURE


                                     

                                      Sorry, but I'm not advanced user. I think it's something wrong with stream installation, but I don't know what.

                                     

                                     

                                     

                                     

                                    Are you getting error for cpu or gpu?  Are you able run any sample coming from sdk?

                                     

                                     

                                    Could you please uninstall your SDK and reinstall? Before reinstalling remove all files in side   Program Files\ATI Stream folder and /My Documents/ATI Stream folder.

                                     

                                     

                                     

                                    Both cpu and gpu. Same error for every opencl samples. I reinstalled and still doesn't work. It something deeper. %ATISTREAMSDKROOT%=
                                    C:\Program Files (x86)\ATI Stream\
                                    %ATISTREAMSDKSAMPLESROOT%=
                                    C:\Users\Kacper\Documents\ATI Stream\
                                    %path%=
                                    C:\Users\Kacper\Documents\ATI Stream\bin\x86_64;C:\Users\Kacper\Documents\ATI Stream\bin\x86;C:\Program Files (x86)\ATI Stream\bin\x86_64;C:\Program Files (x86)\ATI Stream\bin\x86;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;E:\kacper\perl\site\bin;E:\kacper\perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\GNU\GnuPG;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\ATI Stream\Tools\Stream KernelAnalyzer 1.6\


                                     

                                    Kasper93,

                                                  Could you please post following information about your system?

                                                   1. OS with service pack

                                                   2. CPU

                                                   3. GPU

                                                   I hope you are using  SDK2.2 and Driver version 10.8.

                                                    Could you please run sample FindNumDevices and let us know what it displays? FindNumDevices available under CAL samples.

                                      • ERROR: Could not build OpenCL program!
                                        kasper93

                                        1. Windows 7 64bit (fully updated)
                                        2. i7 920
                                        3. HD5870 (sapphire)
                                        SDK 2.2+10.8

                                        Supported CAL Runtime Version: 1.3.185
                                        Found CAL Runtime Version: 1.4.792
                                        Use -? for help
                                        CAL initialized.
                                        Finding out number of devices :-
                                        Device Count = 1
                                        CAL shutdown successful.

                                        Press enter to exit...


                                        One more thing, CAL samples works fine, only OpenCL doesn't work.

                                          • ERROR: Could not build OpenCL program!
                                            genaganna

                                             

                                            Originally posted by: kasper93 1. Windows 7 64bit (fully updated) 2. i7 920 3. HD5870 (sapphire) SDK 2.2+10.8
                                            Supported CAL Runtime Version: 1.3.185 Found CAL Runtime Version: 1.4.792 Use -? for help CAL initialized. Finding out number of devices :- Device Count = 1 CAL shutdown successful. Press enter to exit...
                                            One more thing, CAL samples works fine, only OpenCL doesn't work.

                                             

                                            Please run CLInfo and past output here.

                                              • ERROR: Could not build OpenCL program!
                                                kasper93

                                                CLInfo

                                                 

                                                Number of platforms:                 1
                                                  Platform Profile:                 FULL_PROFILE
                                                  Platform Version:                 OpenCL 1.1 ATI-Stream-v2.2 (302)
                                                  Platform Name:                     ATI Stream
                                                  Platform Vendor:                 Advanced Micro Devices, Inc.
                                                  Platform Extensions:             cl_khr_icd cl_amd_event_callback cl_khr_d3d10_sharing


                                                  Platform 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:                 4000Mhz
                                                  Address bits:                     64
                                                  Max memory allocation:             1073741824
                                                  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:                 Yes
                                                    Round to +ve and infinity:             Yes
                                                    IEEE754-2008 fused multiply-add:         No
                                                  Cache type:                     Read/Write
                                                  Cache line size:                 64
                                                  Cache size:                     32768
                                                  Global memory size:                 3221225472
                                                  Constant buffer size:                 65536
                                                  Max number of constant args:             8
                                                  Local memory type:                 Global
                                                  Local memory size:                 32768
                                                  Profiling timer resolution:             255
                                                  Device endianess:                 Little
                                                  Available:                     Yes
                                                  Compiler available:                 Yes
                                                  Execution capabilities:                 
                                                    Execute OpenCL kernels:             Yes
                                                    Execute native function:             Yes
                                                  Queue properties:                 
                                                    Out-of-Order:                 No
                                                    Profiling :                     Yes
                                                  Platform ID:                     0000000000FA3568
                                                  Name:                         Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
                                                  Vendor:                     GenuineIntel
                                                  Driver version:                 2.0
                                                  Profile:                     FULL_PROFILE
                                                  Version:                     OpenCL 1.1 ATI-Stream-v2.2 (302)
                                                  Extensions:                     cl_amd_fp64 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_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_printf cl_khr_d3d10_sharing
                                                  Device Type:                     CL_DEVICE_TYPE_GPU
                                                  Device ID:                     4098
                                                  Max compute units:                 20
                                                  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:                 850Mhz
                                                  Address bits:                     32
                                                  Max memory allocation:             268435456
                                                  Image support:                 Yes
                                                  Max number of images read arguments:     128
                                                  Max number of images write arguments:     8
                                                  Max image 2D width:             8192
                                                  Max image 2D height:             8192
                                                  Max image 3D width:             2048
                                                  Max image 3D height:     2048
                                                  Max image 3D depth:             2048
                                                  Max samplers within kernel:         16
                                                  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:                 Yes
                                                    Round to +ve and infinity:             Yes
                                                    IEEE754-2008 fused multiply-add:         Yes
                                                  Cache type:                     None
                                                  Cache line size:                 0
                                                  Cache size:                     0
                                                  Global memory size:                 1073741824
                                                  Constant buffer size:                 65536
                                                  Max number of constant args:             8
                                                  Local memory type:                 Scratchpad
                                                  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:                     0000000000FA3568
                                                  Name:                         Cypress
                                                  Vendor:                     Advanced Micro Devices, Inc.
                                                  Driver version:                 CAL 1.4.792
                                                  Profile:                     FULL_PROFILE
                                                  Version:                     OpenCL 1.1 ATI-Stream-v2.2 (302)
                                                  Extensions:                     cl_amd_fp64 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_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_printf cl_amd_media_ops cl_khr_d3d10_sharing


                                                Passed!


                                                 

                                                @jgu222
                                                Of course 64bit. Path values are standard set by the installer.

                                          • ERROR: Could not build OpenCL program!
                                            jgu222

                                            Were you running 32bit samples or 64bit samples ? Your path has 64bit bin in the front. Make sure you are running 64bit samples.   (By the way, it is better not to mix 64bit path with 32bit path).