OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
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.
1686 Discussions

Calling MKL BLAS routines via OpenCL kernels on Xeon Phi natively


Dear All,

In brief - Is it possible to call MKL BLAS routines via a OpenCL kernel which is executing natively on a Xeon Phi card? 

Detail - There is a CFD code which I am helping with running on Phi natively. It uses DGEMM for interpolation on the mesh. The code is also ported to OpenCL for AMD GPUs. For some reasons, we need to run this code (OpenCL version of it) natively on the Phi card and invoke the relevant MKL blas calls via the kernel.Is it possible to do this in the newly released OpenCL SDK?

Thanks and Regards,




0 Kudos
1 Reply

As for now MKL routines cannot be used by OpenCL applications on MIC. It *is* possible to use both offload compiler and OpenCL for MIC but:

1. this will result in device oversubscription

2. data sharing will be possible only by transfering it from offloaded region to host and then back to device using OpenCL buffers and vise versa.

We are looking right now for possible solutions of this problem.