1 Reply Latest reply on Oct 13, 2014 5:49 AM by dipak

    APP SDK 2.9.1 samples crash under Ubuntu 14.04


      Not sure if anyone bumped into the same problem as me.


      A fresh installation of Ubuntu 14.04, Catalyst Driver 2014/09/29 and the latest APP SDK 2.9.1. All samples crash at the clGetPlatformInfo(). After some searching, I found the problem is Ubuntu has a native libOpenCL.so at /usr/lib/libOpenCL.so. The samples are mistakenly linked to that .so which doesn't work later. After renaming that .so to something else and rebuild the samples, everything works fine now.


      P.S., if one saw OPENCL_LIBRARIES not found in the execution of CMAKE, edit the CMAKELists.txt and change a few lines to


      # Set platform

      if( NOT UNIX )

              set(PLATFORM win)


              set(PLATFORM lnx)


              SET(CMAKE_FIND_LIBRARY_SUFFIXES ".so" ".a" ".so.1")



      find_library( OPENCL_LIBRARIES

              NAMES OpenCL

              HINTS ../../../../lib/ $ENV{AMDAPPSDKROOT}/lib/${BITNESS_SUFFIX}




      A sample CMakeLists.txt are attached.

        • Re: APP SDK 2.9.1 samples crash under Ubuntu 14.04


          Thanks for reporting this.

          There are two mode of Catalyst installation: 1) Install Driver <Os version> on X.org 6.9 or later  and 2) Generate Distribution Specific Driver Package (Default). I guess, you've tried with option 1. During Catalyst installation, please select the other mode of installation and then try to build and run the samples. If still face the same problem, please let us know.

          Note: The current SDK installer creates a symbolic link that depends on this specific mode of Catalyst installation. This is a known bug and to be solved in next installer package.