Add GLIBC requirements for libtorch to solve #113124 (#128135)

Fixes #113124.

## Description

I modified the installing.rst file to address the system requirements and troubleshooting steps for using LibTorch with different GLIBC versions.

### Summary of Changes

- Added system requirements specifying the GLIBC version needed for both the cxx11 ABI version and the pre-cxx11 ABI version of LibTorch.
- Included a troubleshooting section with instructions on how to check the dependencies of the LibTorch libraries and identify the required GLIBC version using the `ldd lib/libtorch.so` command.

## Checklist
- [X] The issue that is being fixed is referred in the description
- [X] Only one issue is addressed in this pull request
- [X] Labels from the issue that this PR is fixing are added to this pull request
- [X] No unnecesary issues are included into this pull request

Pull Request resolved: https://github.com/pytorch/pytorch/pull/128135
Approved by: https://github.com/jbschlosser
This commit is contained in:
ibartol
2024-06-14 21:24:53 +00:00
committed by PyTorch MergeBot
parent e9a29aaa4a
commit 65d3ddcb8b

View File

@@ -154,6 +154,19 @@ should now merrily print the tensor (exact output subject to randomness):
Also, make sure you specify the correct configuration in the ``cmake --build .``
line above.
System Requirements
-------------------
To ensure smooth installation and usage of LibTorch, please ensure your system
meets the following requirements:
1. **GLIBC Version**:
- GLIBC 2.29 or newer for cxx11 ABI version
- GLIBC 2.17 or newer for pre-cxx11 ABI version
2. **GCC Version**:
- GCC 9 or newer for cxx11 and pre-cxx11 ABI versions
Visual Studio Extension
-----------------------