gramineproject / examples

Sample applications configs for Gramine
BSD 3-Clause "New" or "Revised" License
28 stars 22 forks source link

make: *** No rule to make target 'dcap'. Stop. #32

Closed Camelliavin closed 1 year ago

Camelliavin commented 2 years ago

I am using the PyTorch PPML Framework Tutorial, when I do

gramine-sgx ./pytorch pytorchexample.py

I got:

Detected a huge manifest, preallocating 64MB of internal memory. Emulating a raw syscall instruction. This degrades performance, consider patching your application to use Gramine syscall API.

Will this have any effect? And I'm trying to use the End-To-End Confidential PyTorch Workflow, when I do

make -C ../../Pal/src/host/Linux-SGX/tools/ra-tls dcap

I got:

make: Entering directory '/root/gramine/Pal/src/host/Linux-SGX/tools/ra-tls' make: *** No rule to make target 'dcap'. Stop. make: Leaving directory '/root/gramine/Pal/src/host/Linux-SGX/tools/ra-tls

And when I go to the next step:

cp <gramine repository>/CI-Examples/ra-tls-secret-prov/libs/libsgx_util.so .
cp <gramine repository>/CI-Examples/ra-tls-secret-prov/libs/libmbed*.so* .
cp <gramine repository>/CI-Examples/ra-tls-secret-prov/pf_crypt .

I got:

cp: cannot stat '/root/gramin/CI-Examples/ra-tls-secret-prov/libs/libsgx_util.so': No such file or directory

I don't know where the problem is, can someone help me?

dimakuv commented 2 years ago

The PyTorch PPML tutorial got stale, we're currently fixing it: https://github.com/gramineproject/gramine/pull/635

You can try to follow the explanations in that PR, or you can wait for another week or so, and then the updated (and hopefully absolutely correct) tutorial will become available at https://gramine.readthedocs.io/en/latest/tutorials/pytorch/index.html

Camelliavin commented 2 years ago

OK. Thanks for your reply and hoping everything goes well.