Closed trz42 closed 11 months ago
Hi,
thanks for submitting this issue. What ROCm version do you have installed on your system right now?
main
is currently based on release branch release/rocm-rel-5.6.1
, which in turn assumes ROCm 5.6.1 header files when you built from source.
Thanks for the clarification. Currently, we have ROCm 5.2.3 on our system. It seems, we may not upgrade very soon (not before end of this year for sure) due to other components relying on that particular version.
Would it make sense to just try building hip-python in a container which provides ROCm 5.6.1, gcc and Python? Here we would be interested if it builds or not.
Technically this would work but might be overkill for the reasons listed below.
The Python packages all perform "runtime linking", i.e. a HIP C function symbol is only looked up within the respective ROCm HIP SDK library objects when actually needed!
Implication: You might mix and match HIP Python packages with various ROCm HIP SDK versions as long as you use a subset of functions where the ABI has not changed between releases.
If you click on the below link, you will see a list of prebuilt binary packages https://test.pypi.org/simple/hip-python/
The manylinux_2_17
tag constrains the compatible Linux OS, 2_17
refers to the GLIBC version 2.17; more details: https://github.com/pypa/manylinux/blob/main/README.rst
The -cp3X
indicates the Python version that the package requires to run.
The conda
Python environment manager (installed via miniconda
distribution) allows to create environment that
use particular Python versions (and other dependencies). This might be one way to get around the constraint on the Python version that is installed on your system.
Attempted to build hip-python from sources following https://github.com/ROCmSoftwarePlatform/hip-python#build-from-source with
This resulted in some errors such as
and
What could cause this? Maybe the installed rocm is too old? Is there a minimum version of rocm required such that hip-python can be built?