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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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 7, 2024
@RossBrunton RossBrunton force-pushed the ross/specconst branch 2 times, most recently from 0697190 to e82bb87 Compare August 7, 2024 10:45
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Aug 7, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Aug 7, 2024
@RossBrunton RossBrunton force-pushed the ross/specconst branch 4 times, most recently from 4a19308 to 429267f Compare August 13, 2024 12:59
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Aug 13, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Aug 14, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Aug 14, 2024
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
…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 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.

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 specification Changes or additions to the specification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants