En utilisant AWS re:Post, vous acceptez les AWS re:Post Conditions d’utilisation

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 réponse
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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions