ROCm / MIVisionX

MIVisionX toolkit is a set of comprehensive computer vision and machine intelligence libraries, utilities, and applications bundled into a single toolkit. AMD MIVisionX also delivers a highly optimized open-source implementation of the Khronos OpenVX™ and OpenVX™ Extensions.
https://rocm.docs.amd.com/projects/MIVisionX/en/latest/
MIT License
184 stars 71 forks source link

[Issue]: Setup - Installation failure on SLES [SWDEV-453318] #1346

Closed hansely closed 1 month ago

hansely commented 1 month ago

Problem Description

MIVisionX-setup.py script fails to install numpy & onnx on SLES-15/RHEL8 system

1. Numpy version 1.21 not supported.

2. Onnx installation fails

sudo pip3 install onnx==1.12.0
Collecting onnx==1.12.0
  Downloading onnx-1.12.0.tar.gz (10.1 MB)
...
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3inri0nv/onnx_3db281e0ec96454c8e514ea362e53403/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3inri0nv/onnx_3db281e0ec96454c8e514ea362e53403/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-t80k9sc4/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.6m/onnx Check the logs for full command output.

Operating System

SLES-15-SP-5

CPU

AMD Ryzen Threadripper 1900X

GPU

AMD Radeon VII

Other

No response

ROCm Version

ROCm 6.0.0

ROCm Component

MIVisionX

Steps to Reproduce

sudo docker run -it --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --device=/dev/kfd --device=/dev/dri --group-add video --group-add 44 -it -v $HOME/dockerx:/dockerx compute-artifactory.amd.com:5000/rocm-plus-docker/compute-rocm-rel-6.1:64-sles-stg2

python3 MIVisionX-setup.py --reinstall ON

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

kiritigowda commented 1 month ago

@hansely any resolution for this?