Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[ESIMD] Add a test specialization constant that is set but not used #1108

Merged
merged 2 commits into from
Jul 27, 2022

Conversation

v-klochkov
Copy link

Signed-off-by: Vyacheslav N Klochkov [email protected]

@v-klochkov v-klochkov requested a review from a team as a code owner July 22, 2022 18:42
@v-klochkov v-klochkov requested review from kbobrovs and fineg74 July 22, 2022 18:42
@v-klochkov v-klochkov force-pushed the esimd_dead_arg_elimination branch 2 times, most recently from aa423c8 to 3b5e140 Compare July 26, 2022 21:00
@v-klochkov v-klochkov changed the title [ESIMD] Add a test for elimination of kernel parm for unused spec const [ESIMD] Add a test specialization constant that is set but not used Jul 26, 2022
The test verifies that SegFault is not happening on the host side
due to attempt to dereference the pointer to non-existing buffer that
is supposed to be used for spec constants, but not allocated in the binary image
when spec const is not used.

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
@v-klochkov v-klochkov force-pushed the esimd_dead_arg_elimination branch from 3b5e140 to ab27103 Compare July 26, 2022 21:05
@v-klochkov
Copy link
Author

This test verifies the fix merged here: intel/llvm#6464

fineg74
fineg74 previously approved these changes Jul 26, 2022
// eliminated by DAE optimization OR nullptr is passed for that argument.

// KH.get_specialization_constant<Spec>();
*A += 2;

Choose a reason for hiding this comment

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

formally speaking, we don't support C++ style memory operations in ESIMD (even though they sometimes work)

Copy link
Author

Choose a reason for hiding this comment

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

Thank you. I replaced it with ESIMD load/store: 30ab516

@kbobrovs kbobrovs merged commit a8a50ef into intel:intel Jul 27, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
…ntel#1108)

* [ESIMD] Add a test for specialization const that is set but not used

The test verifies that SegFault is not happening on the host side
due to attempt to dereference the pointer to non-existing buffer that
is supposed to be used for spec constants, but not allocated in the binary image
when spec const is not used.

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…ntel/llvm-test-suite#1108)

* [ESIMD] Add a test for specialization const that is set but not used

The test verifies that SegFault is not happening on the host side
due to attempt to dereference the pointer to non-existing buffer that
is supposed to be used for spec constants, but not allocated in the binary image
when spec const is not used.

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants