Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VITIS-13807 : Use opencl icd dispatcher instead of ocl icd for embedded flows #8686

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

rbramand-xilinx
Copy link
Collaborator

Problem solved by the commit

Moved to Opencl icd dispatcher from ocl icd dispatcher for embedded platforms as yocto is deprecating the use of ocl icd flows.

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

Yocto team filed story VITIS-13807

How problem was solved, alternative solutions (if any) and why they were rejected

The best fix is to move all the flows to opencl icd way but the problem is all the linux distributions (RHEL, CentOS) doesn't ship packages to support opencl icd flow, so only made changes to embedded flow.
Also this change is made under temporary flag OPENCL_ICD_LOADER so that XRT builds doesn't break till changes in XRT recipe related to opencl icd loader in yocto/petalinux get into TA. This flag will be removed soon.

Risks (if any) associated the changes in the commit

Low as both ocl icd and opencl icd are almost similar and the only change is structure cl_icd_dispatch members differ a little which we already dont use (we already fill zeros as those APIs are not supported in our flow).

What has been tested and how, request additional testing if necessary

Tested Embedded flows build and OpenCL test cases.
Tested x86 build.

Documentation impact (if any)

Most likely no as user doesn't need to understand about the dispatcher we use.

Copy link
Collaborator

@stsoe stsoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One change request.

#else
// All x86 linux distros doesn't have opencl icd dispatcher
// support so using ocl icd dispatcher for x86 flows.
# include "ocl_icd.h"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we indicate system header with angle brackets as it used to be?

Suggested change
# include "ocl_icd.h"
# include <ocl_icd.h>

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure Soren

@chvamshi-xilinx chvamshi-xilinx merged commit 3d7e3e2 into Xilinx:master Jan 13, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants