Closed Smart-Yanmeng closed 1 year ago
@Smart-Yanmeng I guess you already solved your problem, but for history: yes, the problem was with your 8GB of RAM -- this was not sufficient for several SGX enclaves, each with 4GB of enclave size. And apparently decreasing the enclave size to 2GB is too small for your PyTorch application.
There are several ways to fix this. The simplest one is to move to another machine that has more RAM installed in it. The other way to solve it is to create/increase your swap file -- but this comes at a cost of veeery bad slow execution.
Thanks for your reply!
Dmitrii Kuvaiskii @.***> 于2023年5月4日周四 17:17写道:
@Smart-Yanmeng https://github.com/Smart-Yanmeng I guess you already solved your problem, but for history: yes, the problem was with your 8GB of RAM -- this was not sufficient for several SGX enclaves, each with 4GB of enclave size. And apparently decreasing the enclave size to 2GB is too small for your PyTorch application.
There are several ways to fix this. The simplest one is to move to another machine that has more RAM installed in it. The other way to solve it is to create/increase your swap file -- but this comes at a cost of veeery bad slow execution.
— Reply to this email directly, view it on GitHub https://github.com/gramineproject/examples/issues/66#issuecomment-1534372892, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXO3IDLOCHC6M2AQYMDTLNLXENX4DANCNFSM6AAAAAAXQISEH4 . You are receiving this because you were mentioned.Message ID: @.***>
Hi, I'm trying to run pytorch example and met some problems.
The same pytorch examples work properly under the Gramine enviroment. However, when we run the same codes under the SGX env. Here are the problems I have met.
When I
gramine-sgx ./pytorch pytorchexample
then I got: