-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Hexagon] Adjust RPC read buffer size from python #11022
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1311,6 +1311,8 @@ detail::Optional<HEXAPI_Nullptr> SimulatorRPCChannel::to_nullptr(const detail::M | |
|
|
||
| TVM_REGISTER_GLOBAL("tvm.contrib.hexagon.create_hexagon_session") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we include a test that we expect to fail when the stack size is too small, and expect to pass when the stack size is set larger?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The simulator ignores the stack size at the moment.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| .set_body([](TVMArgs args, TVMRetValue* rv) { | ||
| ICHECK(args.size() >= 4) << args.size() << " is less than 4"; | ||
|
|
||
| std::string session_name = args[0]; | ||
| // For target, the second parameter is remote_stack_size_bytes, ignore it. | ||
| std::string sim_args = args[2]; | ||
|
|
||
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.
How about we set the default value to 0, delete the TVM_HEXAGON_RPC_BUFF_DEFAULT_SIZE_BYTES define, and then CHECK that
rpc_receive_buff_size_bytesis non-zero wheng_hexagon_rpc_serveris null?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.
done.