Skip to content

[SYCL] Add support for set(get)_specialization_constant #3501

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
merged 22 commits into from
Apr 20, 2021

Conversation

alexbatashev
Copy link
Contributor

@alexbatashev alexbatashev commented Apr 7, 2021

This patch introduces Spec Constant Name to Spec ID mapping for device_images and implements kernel_bundle::set(get)_specialization_constant() and handler::set(get)_specialization_constant member functions. See 4.9.5.2. Setting and getting the value of a specialization constant.

Copy link
Contributor

@romanovvlad romanovvlad left a comment

Choose a reason for hiding this comment

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

Partial review.

Alexander Batashev and others added 4 commits April 12, 2021 15:01
… into get_set_spec_constants

* 'get_set_spec_constants' of github.com:alexbatashev/llvm:
  Update sycl/source/detail/kernel_bundle_impl.hpp
Alexander Batashev added 2 commits April 13, 2021 09:28
romanovvlad
romanovvlad previously approved these changes Apr 13, 2021
Copy link
Contributor

@romanovvlad romanovvlad left a comment

Choose a reason for hiding this comment

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

LGTM

@alexbatashev
Copy link
Contributor Author

@kbobrovs friendly ping

@alexbatashev alexbatashev requested a review from kbobrovs April 16, 2021 05:46
Copy link
Contributor

@kbobrovs kbobrovs left a comment

Choose a reason for hiding this comment

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

program manager and sycl_fe_intrins LGTM

@bader
Copy link
Contributor

bader commented Apr 20, 2021

@alexbatashev, could you give a description for this 400+ lines patch?

@alexbatashev
Copy link
Contributor Author

@alexbatashev, could you give a description for this 400+ lines patch?

Done

@bader bader merged commit ba3d657 into intel:sycl Apr 20, 2021
@alexbatashev alexbatashev deleted the get_set_spec_constants branch April 20, 2021 06:59
alexbatashev pushed a commit to alexbatashev/llvm that referenced this pull request Apr 20, 2021
* sycl: (625 commits)
  [SYCL] Fix post-commit build failure (intel#3578)
  [SYCL] Add support for set(get)_specialization_constant (intel#3501)
  [SYCL] Do not allow template instantiation to create null attributes. (intel#3575)
  [SYCL][PI][L0] Close and submit batch immediately when Queue is empty. (intel#3552)
  [SYCL] Raise bit_cast to SYCL namespace (intel#3524)
  [ESIMD] Always preserve -vc-codegen option for ESIMD kernels (intel#3547)
  [SYCL] Fix warnings on clang-based build (intel#3570)
  Revert "Align tests with the codegen changes"
  Disable SPV_INTEL_memory_access_aliasing extension
  Fix build issues after applying translator patches
  [PassManager][PhaseOrdering] lower expects before running simplifyCFG
  Exclude spirv.hpp for clang-format
  Fix llvm-spirv crash when count of Fortran metadata variables is an array
  Fix transTypeComposite bug (intel#964)
  Fix incorrect translation of FPGA decoration on arrays (intel#983)
  Tolerate more inputs during alias.scope/noalias MD translation (intel#994)
  Update for LLVM iterator change
  Fix crash at translation of Entity of DebugImportedEntity (intel#951)
  Add HandleLLVMOptions to main CMakeLists.txt to propagate configuration flags. In particular, this enables Multi-threaded option in MSVC (instead of Multi-threaded DLL)
  Fix uninitialized variables warnings These warnings come into place when HandleLLVMOptions is imported
  ...
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.

7 participants