OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1719 Discussions

unable to run sample code from intel

Junjie_L_
Beginner
378 Views

I have a Xeon Phi 7210 processor box, and trying to test OpenCl performance there. Got problem running running a simple code from intel's website: https://software.intel.com/en-us/intel-opencl-support/code-samples 

I have tried the following two using  opencl-1.2-6.4.0.25  opencl-1.2-sdk-6.2.0.1761:

 OpenCL 1.2 samples for Linux:

  • Bitonic Sorting
  • General Matrix Multiply Sample
    The programs are able to compile, but fails in execution: 

    $ ./BitonicSort 

    Platforms (1):

        [0] Intel(R) OpenCL [Selected]

    Devices (1):

        [0] Intel(R) Xeon Phi(TM) CPU 7210 @ 1.30GHz [Selected]

    [ ERROR ] Sample application specific error: OpenCL error CL_DEVICE_NOT_AVAILABLE happened in file ../common/oclobject.cpp at line 447.

     

Can anyone help me figure out what I should do to let it run?   

Thanks and appreciate all your input!

 

 

 

0 Kudos
1 Reply
Jeffrey_M_Intel1
Employee
378 Views

Xeon Phi support in OpenCL is deprecated.  The available runtimes here are for 1st Generation Xeon Phi (Xeon Phi 7100 series, previously Knights Corner.)  OpenCL is a great choice for Intel CPUs and GPUs, but for now you may have better luck with a different programming model for Xeon Phi.

0 Kudos
Reply