This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I'm running an EVMK2H device and I just managed to compile and run the basic VECADD example using OpenMP runtime in OpenCL Mode. My question is:. How Can I rebuild OpenMP in order to run applications in OpenCL mode?
If you want to dispatch code from the A15s running Linux to the C66x DSPs on K2H, there are 2 approaches:
The OpenMP-DSP runtime lets you run code across the C66x DSPs. The OpenMP DSP runtime is integrated into the two approaches listed above and enables you to use either OpenCL or OpenMP offload to dispatch OpenMP regions to the DSPs.
Refer example vecadd_openmp in /usr/share/ti/examples/opencl/vecadd_openmp and vecadd in /usr/share/ti/examples/openmpacc/vecadd
I don't quite understand your question about rebuilding OpenMP to run applications in OpenCL mode. To run OpenCL examples, you need the OpenCL runtime.
If possible, I'd recommend that you update to Processor SDK Linux for K2H, available here: .
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Ajay Jayaraj:
In reply to Carlos Varela:
In reply to EricStotzer:
As Eric mentioned, after you make changes to the OpenMP-DSP runtime to add support for task depend, you need to build the OpenMP DSP runtime. You then also need to rebuild the OpenCL runtime - the OpenCL DSP monitor links against the OpenMP-DSP runtime. You need to rebuild OpenCL because our OpenMP offload runtime uses OpenCL under the hood.
The recommended way to build OpenCL and all its dependencies is to use the Yocto build system. The build process is documented here:
Carlos Varela2. However, we failed when rebuilding the OpenCL library (as instructed in the link processors.wiki.ti.com/.../Processor_SDK_Building_The_SDK), because we don't know how to link it with the rebuilt OpenMP runtime. Our understanding is that, once we manage to do it, a new package (with extension .ipk) will be created, which will be later installed in the EVM file system and then we could execute applications in OpenMP offload mode.
An option is to override OMP_DIR in the Yocto recipe used to build the OpenCL monitor, located at: tisdk/sources/meta-arago/meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb. You would point OMP_DIR to your rebuilt OpenMP runtime for K2H.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.