-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[Explanation] VPU_NUMBER_OF_CMX_SLICES #7263
Comments
Hello @franva, based on the Compile Tool Documentation , specifies the number of CMX slices, should be set with "VPU_NUMBER_OF_SHAVES". |
@zulkifli-halim I think they do not have similar values. Shave ranges from 1 to 16, whereas the CMX slices has a upper limit of 19. Also, I would like to know how to calculate that when I set X shaves, how many Y CMS slices should I use. And what does this |
The Connection Matrix (CMX) enables seamless interaction between the vector processors and other hardware components; Example 1.CMX memory = 2 MB,considered as 16x128 KB ‘slices’, and 12 shaves on this Myriad device;
So for this device, shave ranges from 1 to 12, and CMX slices has a upper limt of 16; Example 2.CMX memory = 1 MB, considered as 8x128 KB slices, and one 128 KB CMX slice for one Shave: So BTW, in this MR #6022, max
Please refer to:
|
Closing issue. |
thank @coneypo for your detailed and picture-filled answer. For both of your examples, you knew the CMX size at the beginning e.g. 2MB for the 1st example and 1MB for the 2nd example. For an user, how can I know how big is my CMX and how many "slices" are there in my Intel's hardware, e.g. Myriad X VPU? Are shaves the vector processors? I will read through the links you provided. Once again, thank you for providing the information :) |
System information (version)
Detailed description
Trying to use the
compile_tool
to compile my IR model.Would like to specify how many shaves the model should use, but found that the
VPU_NUMBER_OF_SHAVES
needs to be used together withVPU_NUMBER_OF_CMX_SLICES
.The problem is that the
VPU_NUMBER_OF_CMX_SLICES
is not given a range, so we do not know what numbers we can put there. After a few rounds of try-and-error, I found it's value range, but I have no idea what's the correlation withVPU_NUMBER_OF_SHAVES
. E.g. when I set shave=8, I should also set the slice=8, or there is a formula to use to calculate the correct number ofVPU_NUMBER_OF_CMX_SLICES
.It will be nice if the document can be more detailed with the range and it's related to the number of shave.
The text was updated successfully, but these errors were encountered: