Skip to content

[SYCL] Fix not found kernel due to empty kernel name when using set_arg(s) #2181

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

Merged

Conversation

alexanderfle
Copy link
Contributor

Using set_arg(s) function in your code with the cacheable kernel leads to the runtime throws an exception "No kernel named was found -46 (CL_INVALID_KERNEL_NAME)" when the kernel is in process of submitting because the kernel cannot be found in the cache. This patch fixes the issue.

Signed-off-by: Alexander Flegontov alexander.flegontov@intel.com

…rg(s)

Signed-off-by: Alexander Flegontov <alexander.flegontov@intel.com>
@alexanderfle alexanderfle requested a review from a team as a code owner July 27, 2020 08:15
alexbatashev
alexbatashev previously approved these changes Jul 27, 2020
@bader
Copy link
Contributor

bader commented Jul 27, 2020

@alexanderfle, please, add a regression test.

@alexanderfle
Copy link
Contributor Author

@bader, we already have a regression test for that case, one conformance test that checks handler API.

@bader
Copy link
Contributor

bader commented Jul 27, 2020

@bader, we already have a regression test for that case, one conformance test that checks handler API.

Interesting... I don't see this test failures in pre-commit or post-commit tests. I think having a small test covering this case in CI will be useful.

Signed-off-by: Alexander Flegontov <alexander.flegontov@intel.com>
Copy link
Contributor

@alexbatashev alexbatashev left a comment

Choose a reason for hiding this comment

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

I understand that code style in our tests is bitty, but it would be great if new tests followed the same style as runtime.

Signed-off-by: Alexander Flegontov <alexander.flegontov@intel.com>
@alexanderfle
Copy link
Contributor Author

@alexbatashev, I have addressed your comments, please review again.

@alexanderfle
Copy link
Contributor Author

@bader, ping

@bader bader merged commit a08674e into intel:sycl Jul 29, 2020
alexbatashev pushed a commit to alexbatashev/llvm that referenced this pull request Jul 30, 2020
…rogram

* upstream/sycl: (609 commits)
  [SYCL] Fix fail in the post commit testing (intel#2210)
  [SYCL] Materialize shadow local variables for byval arguments before use (intel#2200)
  [SYCL] Support lambda functions passed to reduction (intel#2190)
  [SYCL][USM] Improve USM Allocator. (intel#2026)
  [SYCL] Disallow mutable lambdas (intel#1785)
  [SYCL][ESIMD] Setup compilation pipeline for ESIMD (intel#2134)
  [SYCL] Fix not found kernel due to empty kernel name when using set_arg(s) (intel#2181)
  [SYCL] Fixed check for set_arg (intel#2203)
  Refactor indirect access calls to minimize invocations. (intel#2185)
  [SYCL][NFC] Fix potential null-pointer access (intel#2197)
  [SYCL] Propagate attributes from transitive calls to kernel (intel#1878)
  [SYCL] Fix warnings from static analysis tool (intel#2193)
  [SYCL][NFC] Fix ac_float test for compilation with FE optimizations (intel#2184)
  [GitHub Actions] Uplift clang-format version to 10 (intel#2194)
  [SYCL][ESIMD] Pass to replace simd* parameters with native llvm vectors. (intel#2097)
  [SYCL][NFC] Fixed SYCL_PI_TRACE output while selecting a device. (intel#2192)
  [SYCL][FPGA] New spec for controlling load-store units in FPGAs (intel#2158)
  [SYCL][Doc] Clarify reqd_sub_group_size (intel#2103)
  [SYCL] Remove noreturn function attribute (intel#2165)
  [SYCL] Aligned set_arg behaviour with SYCL specification (intel#2159)
  ...
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