From 600f7dc211eeb5b671810e655b8da21844d3e88f Mon Sep 17 00:00:00 2001 From: Jing Xu Date: Wed, 14 Jun 2023 22:25:24 +0000 Subject: [PATCH] add instruction to compile with new C++ ABI (#95177) Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/95177 Approved by: https://github.com/jgong5, https://github.com/mingfeima, https://github.com/kit1980 --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 404fcbd5318..4b75dbe6e65 100644 --- a/README.md +++ b/README.md @@ -231,6 +231,11 @@ git submodule update --init --recursive #### Install PyTorch **On Linux** +If you would like to compile PyTorch with [new C++ ABI](https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html) enabled, then first run this command: +```bash +export _GLIBCXX_USE_CXX11_ABI=1 +``` + If you're compiling for AMD ROCm then first run this command: ```bash # Only run this if you're compiling for ROCm