-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[CPU] [Snippets] Implement Convert for Snippets on ARM #25815
Merged
IvanNovoselov
merged 35 commits into
openvinotoolkit:master
from
xuchen-intel:feature/arm_snippets_convert
Sep 6, 2024
+906
−59
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
ba3fd33
[CPU] [Snippets] Implement load, store, convert emitters, and add con…
xuchen-intel d5e8174
Enable LoadConvertSaturation and three other counterparts
xuchen-intel 5e13530
Fix the issue regarding initialization order
xuchen-intel b732403
Fix issue regarding incorrect path of headers
xuchen-intel b4c92bc
Support conversion between the same precision
xuchen-intel 96c06c6
Fix issue regarding primitive type
xuchen-intel 205e579
Skip test cases on unaligned conversion behavior
xuchen-intel b2c31a4
Apply review comments regarding conversion between f16 and i8(u8)
xuchen-intel ffeadd5
Revise CMakeLists
xuchen-intel 6b03081
Apply arithmetic_mode to align with x64
xuchen-intel 4d99437
Update precision assertion
xuchen-intel f03800b
Replace post_ptr with ptr
xuchen-intel 63d16c2
Set IGNORE_CALLBACK if rank > 6
xuchen-intel 1ea1b6b
Update isSuitableConvert
xuchen-intel da5a32d
Update jit_store_memory_emitter constructor
xuchen-intel 7e8d9c0
Update enum class arithmetic_mode
xuchen-intel 1747147
Call convert_emitter in load/store_emitter
xuchen-intel f7d4f11
Update arguments for instructions regarding f16 conversion
xuchen-intel b21c9dd
Make conversion between f16 and i8 compatible with ARMv8
xuchen-intel aa0b7eb
Update XReg prc
xuchen-intel f879613
Remove unnecessary aux_vec_idxs
xuchen-intel 6365b00
Update mov logic
xuchen-intel 19a43de
Update swtich-case for identical input and output precisions
xuchen-intel cb094a7
Update template for conversion functions
xuchen-intel d4dd709
Apply mov for conversion between i8 and u8 for truncation mode
xuchen-intel 66b70da
Update jit_convert_emitter constructor
xuchen-intel f7ed03c
revert removing unnecessary aux_vec_idxs
xuchen-intel 0fde0e2
Make conversion functions to be member functions of base class
xuchen-intel e547663
Add assertion
xuchen-intel 431bf95
Update SNIPPETS_REGISTER_PASS_RELATIVE
xuchen-intel cb497a1
Apply convert_truncation_emitter
xuchen-intel c16fd38
Add condition for creating conversion emitters
xuchen-intel dda5225
Update assertion for element number
xuchen-intel 7ec419a
Merge branch 'master' into feature/arm_snippets_convert
xuchen-intel 11a8d58
Merge branch 'master' into feature/arm_snippets_convert
xuchen-intel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix issue regarding primitive type
commit 96c06c6a6ab1d8512302302867396c9bf5aa6416
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is method
isInOutPrecisionSupported
which exclude some test cases for acl on arm. Should we remove them if nowConvert
will be executed via Snippets?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Alexandra for the comment! You are right now Convert will be executed via Snippets. Yet tokenization of Snippets has other contraints besides precision. For example, thought i8 is generally supported by Snippets, but some i8 cases will not be tokenized because of for exmaple rank discussed in next comment. For such case, we still need to return false of isInOutPrecisionSupported for acl, when it does not support.
And as I added
primitive != "jit"
to the condition, isInOutPrecisionSupported will not be executed if primitive already equal to "jit". Please feel free to have further discussions.