Install TensorFlow for ROCm 10.0.0

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
Instinct GPU
TensorFlow version
Installation method

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