gramineproject / examples

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

I run pytorchexampe.py,but I have encountered some difficulties and need some help. #60

Closed Kikyou5473 closed 1 year ago

Kikyou5473 commented 1 year ago

root@iZbp1cfgyyg2uznmtvyyjzZ:~/examples/pytorch# gramine-sgx ./pytorch ./pytorchexample.py Gramine is starting. Parsing TOML manifest file, this may take some time...

Gramine detected the following insecure configurations:

Gramine will continue application execution, but this configuration must not be used in production!

Killed root@iZbp1cfgyyg2uznmtvyyjzZ:~/examples/pytorch# error: Failed to initialize child process: Broken pipe (PAL_ERROR_CONNFAILED_PIPE)

It did not work properly. Does anyone know why?

dimakuv commented 1 year ago

Killed

This is the culprit. You seem to have too little system memory (RAM + swapfile) to run the PyTorch workload. Assuming you're using our PyTorch example with 4GB per enclave, you'll require 8GB of system memory.

See also https://gramine.readthedocs.io/en/stable/manifest-syntax.html#enclave-size