使用 AWS re:Post 即表示您同意 AWS re:Post 使用條款

Persistent Compilation Issue with Deep Learning AMI Neuron PyTorch 1.13 (Ubuntu 20.04) Server and Libtorch Library

0

Hi, I am reaching out to you regarding a persistent issue I am encountering with my Deep Learning AMI Neuron PyTorch 1.13 (Ubuntu 20.04) server.

My problem lies in compiling with the libtorch library. Despite multiple attempts and rigorous troubleshooting, I continue to experience difficulties. What is more concerning is that this issue is not limited to my own codebase. When attempting to run your provided demo code, I find that the same error occurs.

/home/ubuntu/libtorch/include/torch/csrc/api/include/torch/all.h:4:2: error: #error C++17 or later compatible compiler is required to use PyTorch.

I believe this might point towards a deeper, more systemic issue that might be worth looking into. I would greatly appreciate it if you could provide me with some guidance on how to resolve this issue, or if there is any additional information or logs I could provide to assist in troubleshooting this problem.

Thank you in advance for your assistance, and I look forward to hearing from you soon.

Best regards.

已提問 1 年前檢視次數 467 次
1 個回答
0

The c++ compiler version you are using is too old (as the error states). Please update your compiler version to one with C++17 support. As you can see this is a function of the version of pytorch you are using.

AWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南