Skip to content
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

[Rust] Static syslib #3274

Merged
merged 4 commits into from
Jun 9, 2019
Merged

[Rust] Static syslib #3274

merged 4 commits into from
Jun 9, 2019

Conversation

nhynes
Copy link
Member

@nhynes nhynes commented Jun 1, 2019

This PR provides a macro that loads syslib modules at compile time. The immediate benefit is that it removes the need for closures. This macro will later be expanded to instantiate graphs at compile time.

cc @ehsanmok

@nhynes nhynes requested a review from tqchen June 1, 2019 21:39
@nhynes nhynes self-assigned this Jun 1, 2019
use tvm_runtime::DLTensor;

mod tvm_mod {
import_module!("runtime/tests/test_tvm_static/test.o");
Copy link
Member

Choose a reason for hiding this comment

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

Is there a way to have this generate better wrappers for the contained packed functions, instead of having to use macros to call them?

Copy link
Member Author

Choose a reason for hiding this comment

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

What did you have in mind? The only other alternative would be to have build.rs dump the macro output to a file (or write a compiler plugin, but that's the nuclear option).

@tqchen
Copy link
Member

tqchen commented Jun 5, 2019

Please help to resolve the CI problem http://ci.tvm.ai:8080/blue/organizations/jenkins/tvm/detail/PR-3274/2/pipeline

@nhynes nhynes changed the title Static syslib [Rust] Static syslib Jun 9, 2019
@nhynes nhynes merged commit a4bc50e into apache:master Jun 9, 2019
@nhynes nhynes deleted the static-syslib branch June 9, 2019 03:57
wweic pushed a commit to wweic/tvm that referenced this pull request Jun 26, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants