mirror of
https://github.com/ROCm/ROCm-docker.git
synced 2025-12-25 06:41:45 +01:00
14 lines
492 B
Bash
Executable File
14 lines
492 B
Bash
Executable File
#!/bin/bash
|
|
|
|
/opt/rocm/bin/rocminfo 2>&1 | /bin/grep "HSA Error" > /dev/null
|
|
if [ $? -eq 0 ]
|
|
then
|
|
echo "Error: Incompatible ROCm environment."
|
|
echo "The Docker container requires the latest kernel driver to operate correctly."
|
|
echo "Upgrade the ROCm kernel to v4.1 or newer, or use a container tagged for v4.0.1 or older."
|
|
echo "For more information, see"
|
|
echo "https://rocmdocs.amd.com/en/latest/Current_Release_Notes/Current-Release-Notes.html#"
|
|
exit 1
|
|
fi
|
|
exec "$@"
|