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

[Spec Constants] Improved handling of invalid spec. constants #1469

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

RossBrunton
Copy link
Contributor

@RossBrunton RossBrunton commented Mar 22, 2024

Two main changes to how Kernel/ProgramSetSpecializationConstants are handled:

  • They may now output either INVALID_VALUE or the new INVALID_SPEC_ID when the provided list is invalid.
  • The OpenCL and level 0 adapters now respond to UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS with false rather than erroring out. This fixes some tests that were incorrectly not being skipped.
  • urKernelSetSpecializationConstants now "implemented" (as a function that returns UNSUPPORTED_FEATURE for opencl and cuda.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 29 lines in your changes are missing coverage. Please review.

Project coverage is 12.42%. Comparing base (78ef1ca) to head (7bb6c27).
Report is 199 commits behind head on main.

Files Patch % Lines
...ance/kernel/urKernelSetSpecializationConstants.cpp 0.00% 13 Missing ⚠️
...ce/program/urProgramSetSpecializationConstants.cpp 0.00% 13 Missing ⚠️
include/ur_print.hpp 0.00% 3 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1469      +/-   ##
==========================================
- Coverage   14.82%   12.42%   -2.41%     
==========================================
  Files         250      241       -9     
  Lines       36220    36271      +51     
  Branches     4094     4111      +17     
==========================================
- Hits         5369     4506     -863     
- Misses      30800    31761     +961     
+ Partials       51        4      -47     

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

@ldrumm
Copy link
Contributor

ldrumm commented Mar 29, 2024

@jchlanda is our spec constants expert. Jakub, please take over this review

@ldrumm ldrumm requested review from jchlanda and removed request for ldrumm March 29, 2024 15:47
include/ur_api.h Outdated Show resolved Hide resolved
source/adapters/cuda/kernel.cpp Show resolved Hide resolved
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Aug 14, 2024
@RossBrunton RossBrunton force-pushed the ross/specconst branch 2 times, most recently from b93c1ad to 7538206 Compare August 20, 2024 11:09
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Aug 20, 2024
@RossBrunton RossBrunton added the ready to merge Added to PR's which are ready to merge label Aug 20, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Aug 23, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Aug 23, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Aug 23, 2024
@omarahmed1111 omarahmed1111 removed the ready to merge Added to PR's which are ready to merge label Sep 18, 2024
@omarahmed1111
Copy link
Contributor

@RossBrunton Please rebase this when possible, I removed the ready to merge label and please readd it when rebased.

RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Sep 30, 2024
@RossBrunton RossBrunton force-pushed the ross/specconst branch 2 times, most recently from 331e1f5 to 713770d Compare September 30, 2024 15:00
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Sep 30, 2024
@RossBrunton RossBrunton added the ready to merge Added to PR's which are ready to merge label Oct 1, 2024
@RossBrunton
Copy link
Contributor Author

RossBrunton commented Oct 1, 2024

@RossBrunton Please rebase this when possible, I removed the ready to merge label and please readd it when rebased.

Updated. Sorry for the delay.

EDIT: Never mind...

EDIT 2: And it's green again and should be ready to merge.

@RossBrunton RossBrunton removed the ready to merge Added to PR's which are ready to merge label Oct 1, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Oct 2, 2024
@RossBrunton RossBrunton added the ready to merge Added to PR's which are ready to merge label Oct 2, 2024
…ants

Two main changes to how `Kernel/ProgramSetSpecializationConstants`
are handled:
* They may now output either `INVALID_VALUE` or the new
  `INVALID_SPEC_ID` when the provided list is invalid.
* The OpenCL and level 0 adapters now respond to
  `UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS` with `false`
  rather than erroring out. This fixes some tests that were
  incorrectly not being skipped.
* `urKernelSetSpecializationConstants` now "implemented" (as a
  function that returns `UNSUPPORTED_FEATURE` for a number of
  adapters.
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Oct 7, 2024
@aarongreig aarongreig merged commit 22ef899 into oneapi-src:main Oct 14, 2024
74 of 75 checks passed
martygrant pushed a commit to intel/llvm that referenced this pull request Oct 14, 2024
@RossBrunton RossBrunton deleted the ross/specconst branch November 6, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conformance Conformance test suite issues. cuda CUDA adapter specific issues hip HIP adapter specific issues level-zero L0 adapter specific issues loader Loader related feature/bug native-cpu Native CPU adapter specific issues opencl OpenCL adapter specific issues ready to merge Added to PR's which are ready to merge specification Changes or additions to the specification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants