Skip to content

libamdhip64.so.6 missing when import torch_scatter torch_sparse torch_spline torch_clster #16

@chen112p

Description

@chen112p

Hi im using the torch rocm latest docker image, which has rocm version 7.0. all packages can be installed properly from your pre-built wheel, but only torch_geometric can be imported (with some warnings). not sure if rocm version is the problem.

PyTorch version: 2.8.0+rocm7.0.0.git64359f59
ROCm available: 7.0.51831-a3e329ad8
GPU available: True
Device name: AMD Radeon RX 9070 XT
/opt/venv/lib/python3.12/site-packages/torch_geometric/typing.py:86: UserWarning: An issue occurred while importing 'torch-scatter'. Disabling its usage. Stacktrace: libamdhip64.so.6: cannot open shared object file: No such file or directory
  warnings.warn(f"An issue occurred while importing 'torch-scatter'. "
/opt/venv/lib/python3.12/site-packages/torch_geometric/typing.py:97: UserWarning: An issue occurred while importing 'torch-cluster'. Disabling its usage. Stacktrace: libamdhip64.so.6: cannot open shared object file: No such file or directory
  warnings.warn(f"An issue occurred while importing 'torch-cluster'. "
/opt/venv/lib/python3.12/site-packages/torch_geometric/typing.py:113: UserWarning: An issue occurred while importing 'torch-spline-conv'. Disabling its usage. Stacktrace: libamdhip64.so.6: cannot open shared object file: No such file or directory
  warnings.warn(
/opt/venv/lib/python3.12/site-packages/torch_geometric/typing.py:124: UserWarning: An issue occurred while importing 'torch-sparse'. Disabling its usage. Stacktrace: libamdhip64.so.6: cannot open shared object file: No such file or directory
  warnings.warn(f"An issue occurred while importing 'torch-sparse'. "
Traceback (most recent call last):
  File "/workspace/main.py", line 9, in <module>
    import torch_scatter
  File "/opt/venv/lib/python3.12/site-packages/torch_scatter/__init__.py", line 16, in <module>
    torch.ops.load_library(spec.origin)
  File "/opt/venv/lib/python3.12/site-packages/torch/_ops.py", line 1478, in load_library
    ctypes.CDLL(path)
  File "/usr/lib/python3.12/ctypes/__init__.py", line 379, in __init__
    self._handle = _dlopen(self._name, mode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: libamdhip64.so.6: cannot open shared object file: No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions