9 Replies Latest reply on Apr 12, 2013 7:58 AM by freighter

    Bug: compiler build option no-bin-llvmir

    freighter

      In the actual version of the AMD Accelerated Parallel Processing
      OpenCL, December 2012, rev2.4, section 2.1.4  AMD-DevelopedSupplemental Compiler Options
      there is mentioned the compiler build option -f(no)-bin-llvmir.

       

      Reproducing the bug :

      Use Catalyst 13.3 Beta3 (e.g. for 64bit linux) with runtime OpenCL 1.2 AMD-APP (1124.2).

      Now try in AMDAPP KernelAnalyzer2 (e.g. on linux) to load the Template_Kernels.cl taken

      from AMDAPP SDK 2.8 and add the build option -fno-bin-llvmir

      Result :

      ...

      >snip<

      Internal error: Compilation failed.

      --------

       

      ========== Build: 0 of 19 succeeded ==========

       

      When removing the option, building the Kernels works ok :

      ========== Build: started ==========

      Error: no .astext section found.

       

      ========== Build: 19 of 19 succeeded ==========

       

      It would be nice if this could be fixed, because it has already become a live problem, see http://setiathome.berkeley.edu/forum_thread.php?id=71310&postid=1353582

        • Re: Bug: compiler build option no-bin-llvmir
          himanshu.gautam

          Hi,

          I will check this at my end and let you know. BTW i was able to run the kernel (with -fno-bin-llvmir)  in Windows7. Will check on linux tomorrow.

            • Re: Bug: compiler build option no-bin-llvmir
              freighter

              himanshu.gautam schrieb:

               

              Hi,

              I will check this at my end and let you know. BTW i was able to run the kernel (with -fno-bin-llvmir)  in Windows7. Will check on linux tomorrow.

              What driver version did you use ? Any of the previous drivers to Catalyst 13.3 Beta3, like 13.1 or 12.8 or ... , came with OpenCL (runtime) compilers, that did not have this problem with building kernels from a .cl

               

              The Template_Kernels.cl was choosen as testcase as it is very simple and available.

              • Re: Bug: compiler build option no-bin-llvmir
                Raistmer

                Same issue on Windows with latest Cat betas.

                Looks like CL-compiler devs forgot to re-read own manual for options they should support

                This option causes not compiler error but smth more like compiler crash or what "Internal error" means... Pure bug, please fix.

                 

                It's real curse to check almost anything if it work or not on each new Cat release... We use this option to reduce compilation time and binary size... and now app refuses to work on any new Cat drivers.

                wtf really

                  • Re: Bug: compiler build option no-bin-llvmir
                    himanshu.gautam

                    Hi Raistmer,

                    I had checked on a internal driver build, and i was able to run the Template sample (after specifying "-fno-bin-llvmir" option in clBuildProgram). KernelAnalyzer also run fine. So this issue does not happen with the new driver AMD plans to release. Sorry for the hassle you had to go through.

                    Note: i had not tested with 13.3 driver yet. I will let you know the results there tomorrow.