Skip to content

Commit 7b3bd44

Browse files
nitins17copybara-github
authored andcommitted
Amend install and build from source instructions
PiperOrigin-RevId: 524062840
1 parent edd6242 commit 7b3bd44

File tree

4 files changed

+17
-20
lines changed

4 files changed

+17
-20
lines changed

site/en/guide/create_op.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,13 @@ g++ -std=c++14 -shared zero_out.cc -o zero_out.so -fPIC ${TF_CFLAGS[@]} ${TF_LFL
360360
On macOS, the additional flag "-undefined dynamic_lookup" is required when
361361
building the `.so` file.
362362

363-
> Note on `gcc` version `>=5`: gcc uses the new C++
364-
> [ABI](https://gcc.gnu.org/gcc-5/changes.html#libstdcxx) since version `5`. The binary pip
365-
> packages available on the TensorFlow website are built with `gcc4` that uses
366-
> the older ABI. If you compile your op library with `gcc>=5`, add
367-
> `-D_GLIBCXX_USE_CXX11_ABI=0` to the command line to make the library
368-
> compatible with the older abi.
363+
> Note on `gcc` version `>=5`: gcc uses the new C++
364+
> [ABI](https://gcc.gnu.org/gcc-5/changes.html#libstdcxx) since version `5`.
365+
> TensorFlow 2.8 and earlier were built with `gcc4` that uses the older ABI. If
366+
> you are using these versions of TensorFlow and are trying to compile your op
367+
> library with `gcc>=5`, add `-D_GLIBCXX_USE_CXX11_ABI=0` to the command line to
368+
> make the library compatible with the older ABI. TensorFlow 2.9+ packages are
369+
> compatible with the newer ABI by default.
369370
370371
### Compile the op using bazel (TensorFlow source installation)
371372

site/en/install/pip.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Note: GPU support is available for Ubuntu and Windows with CUDA®-enabled cards.
151151
## Software requirements
152152
153153
* Python 3.8–3.11
154-
* pip version 19.0 or higher for Linux (requires `manylinux2010` support) and
154+
* pip version 19.0 or higher for Linux (requires `manylinux2014` support) and
155155
Windows. pip version 20.3 or higher for macOS.
156156
* Windows Native Requires
157157
[Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019](https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads){:.external}

site/en/install/source.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,8 @@ for
224224
Building TensorFlow from source can use a lot of RAM. If your system is
225225
memory-constrained, limit Bazel's RAM usage with: `--local_ram_resources=2048`.
226226

227-
The [official TensorFlow packages](./pip.md) are built with a GCC
228-
toolchain that complies with the manylinux2010 package standard.
229-
230-
For GCC 5 and later, compatibility with the older ABI can be built using:
231-
`--cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0"`. ABI compatibility ensures that custom
232-
ops built against the official TensorFlow package continue to work with the
233-
GCC 5 built package.
227+
The [official TensorFlow packages](./pip.md) are built with a GCC toolchain that
228+
complies with the manylinux2014 package standard.
234229

235230
### Build the package
236231

site/en/r1/guide/extend/op.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -348,12 +348,13 @@ g++ -std=c++11 -shared zero_out.cc -o zero_out.so -fPIC ${TF_CFLAGS[@]} ${TF_LFL
348348
On macOS, the additional flag "-undefined dynamic_lookup" is required when
349349
building the `.so` file.
350350

351-
> Note on `gcc` version `>=5`: gcc uses the new C++
352-
> [ABI](https://gcc.gnu.org/gcc-5/changes.html#libstdcxx) since version `5`. The binary pip
353-
> packages available on the TensorFlow website are built with `gcc4` that uses
354-
> the older ABI. If you compile your op library with `gcc>=5`, add
355-
> `-D_GLIBCXX_USE_CXX11_ABI=0` to the command line to make the library
356-
> compatible with the older abi.
351+
> Note on `gcc` version `>=5`: gcc uses the new C++
352+
> [ABI](https://gcc.gnu.org/gcc-5/changes.html#libstdcxx) since version `5`.
353+
> TensorFlow 2.8 and earlier were built with `gcc4` that uses the older ABI. If
354+
> you are using these versions of TensorFlow and are trying to compile your op
355+
> library with `gcc>=5`, add `-D_GLIBCXX_USE_CXX11_ABI=0` to the command line to
356+
> make the library compatible with the older ABI. TensorFlow 2.9+ packages are
357+
> compatible with the newer ABI by default.
357358

358359
### Compile the op using bazel (TensorFlow source installation)
359360

0 commit comments

Comments
 (0)