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

[CL] Atomic fence scope capability for Intel FPGA driver #1450

Merged

Conversation

kbenzie
Copy link
Contributor

@kbenzie kbenzie commented Mar 15, 2024

This patch implements a workaround for the Intel FPGA driver which is currently an OpenCL 1.2 device which also supports UR_MEMORY_SCOPE_CAPABILITY_FLAG_DEVICE rather than the baseline for OpenCL 1.2 devices.

The workaround unconditionally queries for CL_DEVICE_ATOMIC_FENCE_CAPABILITIES, if it is successful the value is used. Otherwise the error code is ignored and the baseline capabilities are returned.

@kbenzie kbenzie marked this pull request as draft March 18, 2024 12:09
@kbenzie kbenzie force-pushed the benie/cl-fpga-atomic-memory-order-caps branch from 9f72631 to a85eae7 Compare March 18, 2024 14:51
@kbenzie kbenzie force-pushed the benie/cl-fpga-atomic-memory-order-caps branch 2 times, most recently from 00b85fb to a811a5d Compare March 19, 2024 15:29
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 12.46%. Comparing base (78ef1ca) to head (a811a5d).
Report is 184 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1450      +/-   ##
==========================================
- Coverage   14.82%   12.46%   -2.36%     
==========================================
  Files         250      241       -9     
  Lines       36220    36146      -74     
  Branches     4094     4097       +3     
==========================================
- Hits         5369     4506     -863     
- Misses      30800    31636     +836     
+ Partials       51        4      -47     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kbenzie kbenzie marked this pull request as ready for review March 20, 2024 14:12
@kbenzie kbenzie added the v0.9.x Include in the v0.9.x release label Mar 20, 2024
@kbenzie kbenzie changed the title [CL] Atomic order memory capability for Intel FPGA driver [CL] Atomic fence scope capability for Intel FPGA driver Mar 20, 2024
This patch implements a workaround for the Intel FPGA driver which is
currently an OpenCL 1.2 device which also supports
`UR_MEMORY_SCOPE_CAPABILITY_FLAG_DEVICE` rather than the baseline for
OpenCL 1.2 devices.

The workaround unconditionally queries for
`CL_DEVICE_ATOMIC_FENCE_CAPABILITIES`, if it is successful the value is
used. Otherwise the error code is ignored and the baseline capabilities
are returned.
@kbenzie kbenzie force-pushed the benie/cl-fpga-atomic-memory-order-caps branch from a811a5d to 6c0131f Compare April 1, 2024 13:54
@aarongreig aarongreig merged commit 535f4b9 into oneapi-src:main Apr 2, 2024
51 checks passed
aarongreig pushed a commit to kbenzie/llvm that referenced this pull request Apr 5, 2024
kbenzie pushed a commit to kbenzie/unified-runtime that referenced this pull request Apr 8, 2024
…memory-order-caps

[CL] Atomic fence scope capability for Intel FPGA driver
@kbenzie kbenzie mentioned this pull request Apr 16, 2024
19 tasks
@kbenzie kbenzie deleted the benie/cl-fpga-atomic-memory-order-caps branch June 11, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v0.9.x Include in the v0.9.x release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants