The issue now is that the runtime fails to compile under SGX now that the frontend is also in there.
Since tvm#2878 has been merged, you can use tvm:master
again if you modify apps/sgx/enclave/Cargo.toml
:
- tvm = { path = "../../../rust", default-features = false, features = ["sgx"] }
+ tvm = { git = "https://github.com/dmlc/tvm", default-features = false, features = ["sgx"], rev="d08941f" }
If you need to modify the TVM Rust runtime, you can run
$ cd /path/to/tvm && git worktree add ../tvm_sgx_old d08941f
and then add the following lines to apps/sgx/enclave/Cargo.toml
[patch."https://github.com/dmlc/tvm"]
tvm = { path = "/path/to/tvm_sgx_old", default-features = false, features = ["sgx"], rev="d08941f" }
I’m looking forward to properly fixing up the TVM SGX integration in the coming days, but hopefully this patch gets you going in the meantime. Many thanks for your extreme patience!