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

[ESIMD][NFC] Fix several NFC issues in atomic_update() implementation #11638

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

v-klochkov
Copy link
Contributor

  • Added a routine to convert atomic_op to internal integer opcode that might be different depending on the data type;
  • Simplified calls of get_num_args() by removing some redundant LSC <-> non-LSC opcode conversions;
  • Use fcmpxchg instead of obsolete/less-common fcmpwr alias-sets;
  • Outlined FP types check for atomics into a macro __ESIMD_FP_ATOMIC_OP_TYPE_CHECK that may be re-defined if necessary;
  • NFC changes in lsc/atomic_smoke.cpp test to avoid potential problems with some types that may not have all required constexpr constructors.

- Added a routine to convert atomic_op to internal integer opcode
  that might be different depending on the data type;
- Simplified calls of get_num_args() by removing some redundant
  LSC <-> non-LSC opcode conversions;
- Use fcmpxchg instead of obsolete/less-common fcmpwr alias-sets;
- Outlined FP types check for atomics into a macro
  __ESIMD_FP_ATOMIC_OP_TYPE_CHECK that may be re-defined if necessary;
- NFC changes in lsc/atomic_smoke.cpp test to avoid potential problems
  with some types that may not have all required constexpr constructors.

Signed-off-by: Vyacheslav N Klochkov <vyacheslav.n.klochkov@intel.com>
@v-klochkov v-klochkov marked this pull request as ready for review October 24, 2023 07:42
@v-klochkov v-klochkov requested a review from a team as a code owner October 24, 2023 07:42
Signed-off-by: Vyacheslav N Klochkov <vyacheslav.n.klochkov@intel.com>
@v-klochkov v-klochkov temporarily deployed to WindowsCILock October 24, 2023 18:53 — with GitHub Actions Inactive
@v-klochkov v-klochkov temporarily deployed to WindowsCILock October 24, 2023 20:26 — with GitHub Actions Inactive
@againull againull merged commit a5d5738 into intel:sycl Oct 24, 2023
12 checks passed
@v-klochkov v-klochkov deleted the esimd_atomic_update_types_nfc branch October 25, 2023 00:38
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