Hi guys
I have _rootless_ container with PyTorch from ROCm
-> $ { export _NAME="pytorch_rocm"; export
_PATH=${HOME}/containers/FLATfiles/${_NAME}; echo; mkdir -p
${_PATH}/{,root,dockerx}; }; podman run -dt
--device=/dev/kfd --device=/dev/dri --group-add video
--shm-size 8G --security-opt seccomp=unconfined --volume
${_PATH}/root:/root:z --volume ${_PATH}/dockerx:/dockerx:z
-w /dockerx --name ${_NAME/\//_} rocm/pytorch:latest
which fails to:
root@4bc3c2ec2ab3:/dockerx# python3 -c 'import torch;
print(torch.cuda.is_available())'
False
Such _rootful_ container seems a okey but rootless "suffers"
such failures due to SELinux denials I think:
...
SELinux is preventing /opt/conda/envs/py_3.9/bin/python3.9
from 'read, write' accesses on the chr_file kfd. For
complete SELinux messages run: sealert -l
6b3db344-2ffc-4ecd-aa2c-2c1a2bfe23e4
SELinux is preventing /opt/conda/envs/py_3.9/bin/python3.9
from 'read, write' accesses on the chr_file kfd.
Would you know if this can be fixed, possibly without
building extra SE module(s)?
many thanks, L.