mirror of
https://github.com/ROCm/ROCm-docker.git
synced 2026-05-04 23:26:10 +02:00
Check the existence of the amdkfd sys file
This commit is contained in:
parent
979215aab5
commit
b7e1992d5c
@ -51,7 +51,8 @@ if uname -r | grep -q 'rocm'; then
|
||||
add_repo http://repo.radeon.com/rocm/apt/debian/
|
||||
fi
|
||||
|
||||
else
|
||||
elif [ -e /sys/module/amdkfd/version ]; then
|
||||
|
||||
KERNEL_VERSION=$(cat /sys/module/amdkfd/version)
|
||||
KERNEL_SRC_VERSION=$(cat /sys/module/amdkfd/srcversion)
|
||||
if [ "$KERNEL_VERSION" == "2.0.0" ]; then
|
||||
@ -75,6 +76,8 @@ else
|
||||
add_repo http://repo.radeon.com/rocm/apt/debian/
|
||||
fi
|
||||
|
||||
else
|
||||
add_repo http://repo.radeon.com/rocm/apt/debian/
|
||||
fi
|
||||
|
||||
# Install key
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user