9 Replies Latest reply on Nov 14, 2014 8:05 AM by nan

    OpenCL 2.0 example compile problem


      I download the Binary Search using OpenCL 2.0 SVM(http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/opencl-2-0-samples/) example and unzip it. Then I run "cmake ." and get wrong.

      $ cmake .

      CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

      Please set them or make sure they are set and tested correctly in the CMake files:


          linked by target "SVMBinaryTreeSearch" in directory SVMBinarySearchTree/SVMBinarySearchTree/samples/opencl/cl/SVMBinaryTreeSearch



      -- Configuring incomplete, errors occurred!

      See also "SVMBinarySearchTree/SVMBinarySearchTree/samples/opencl/cl/SVMBinaryTreeSearch/CMakeFiles/CMakeOutput.log".


      I use Ubuntu14.04, I notice that in CMakeList.txt, it writes "../../../../lib/ ", but that dir only contains the win64/OpenCL.lib file. How should I change the cmake files so that I can compile it?


      There is a /usr/lib/libOpenCL.so.1.