-
Notifications
You must be signed in to change notification settings - Fork 607
Qualcomm AI Engine Direct - Add the argument to specify soc model #5211
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
Qualcomm AI Engine Direct - Add the argument to specify soc model #5211
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/5211
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit d34cd1a with merge base c5a385e ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
Looks good. Thank you
soc_chip_table = { | ||
"SM8650": QcomChipset.SM8650, | ||
"SM8550": QcomChipset.SM8550, | ||
"SM8475": QcomChipset.SM8475, | ||
"SM8450": QcomChipset.SM8450, | ||
} |
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.
I think we need have this table somewhere in the qualcomm backend
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.
let me change it to
qnn_partitioner = QnnPartitioner(
generate_qnn_executorch_compiler_spec(
soc_model=getattr(QcomChipset, soc_model),
backend_options=backend_options,
debug=False,
saver=False,
shared_buffer=shared_buffer,
profile=False,
),
skip_node_id_set,
skip_node_op_set,
)
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.
oh is it possible to have a function inside qualcomm like
def get_soc_table():
return soc_chip_table = {
"SM8650": QcomChipset.SM8650,
"SM8550": QcomChipset.SM8550,
"SM8475": QcomChipset.SM8475,
"SM8450": QcomChipset.SM8450,
}
and call it here?
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.
that's actually what I meatn..and the previous version seems good actually
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 for your advice.
But I think we don't want to add this table for maintenance convenience.
Because if we would like to add new soc, we will need to maintain extra table.
05dbf77
to
d34cd1a
Compare
@cccclai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Thanks - will merge when CI finishes |
No description provided.