Install TensorFlow for ROCm 10.0.0#
This page guides you through installing TensorFlow with ROCm support on AMD Instinct GPUs running Linux. It applies to supported AMD GPUs and platforms.
Device family
AMD Instinct™
Instinct GPU
TensorFlow version
2.21
2.20
2.19.1
Installation method
Docker
pip
Prerequisites#
Known issues#
After installing rocm_tensorflow using pip, attempting to run TensorFlow
can result in multiple ImportError.
ImportError: libhipsparse.so.4
...
ImportError: librocm_sysdeps_asm.so.1
...
As a workaround, update LD_LIBRARY_PATH to link to the required ROCm
libraries and system dependencies in your installation path:
export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib/python3.12/site-packages/_rocm_sdk_core/lib:$VIRTUAL_ENV/lib/python3.12/site-packages/_rocm_sdk_core/lib/rocm_sysdeps/lib:$VIRTUAL_ENV/lib/python3.12/site-packages/_rocm_sdk_libraries/lib:$LD_LIBRARY_PATH