1 В избранное 0 Ответвления 0

GITHUB-MIRROR/MooreThreads-torch_musa

 / Детали:

Не удалось импортировать torch_musa

Предстоит сделать
Владелец
Создано  
08.02.2025

Система: Ubuntu20.04

GPU: MTT S80

Версия драйвера: Driver Version 20241010 release kuae1.3.0_musa3.1.0 db329f8fb@20241009

Версия musa tool

musa_toolkits:
{
	"version": "3.1.0",
	"git branch": "kuae1.3.0_musa3.1.0",
	"git tag": "No tag",
	"commit id": "38fe8761d291e32cad642435d9f84c97e4a37bba",
	"commit date": "2024-09-05 19:33:56 +0800"
}
mcc:
{
	"version": "3.1.0",
	"git branch": "kuae1.3.0_musa3.1.0",
	"git tag": "No tag",
	"commit id": "baf70da0ba9f1a95a844726d8b2c28a1365b886a",
	"commit date": "2024-10-08 16:20:58 +0800"
}
mublas:
{
	"version": "1.6.0",
	"build archs": "21,22",
	"git branch": "kuae1.3.0_musa3.1.0_mublas1.6.0",
	"git tag": "No tag",
	"commit id": "7bd80754907ffe182da297f54737c74f6e4d4e09",
	"commit date": "2024-09-30 11:42:09 +0800"
}
mudnn:
{
	"version": "2.7.0",
	"git branch": "kuae1.3.0_musa3.1.0_mudnn2.7.0",
	"git tag": "No tag",
	"commit id": "2fa2f81bf0d77fa977ee398f37a3fdfc6d18cfb1",
	"commit date": "2024-09-14 16:31:08 +0800"
}
mufft:
{
	"version": "1.6.0",
	"build archs": "21;22",
	"git branch": "kuae1.3.0_musa3.1.0_muFFT1.6.0",
	"git tag": "No tag",
	"commit id": "a4790e6ac030a68fb033928c54b2d5044d33cf9e",
	"commit date": "2024-08-23 10:33:45 +0800"
}
muPP:
{
	"version": "1.7.0",
	"build archs": "21;22",
	"git branch": "kuae1.3.0_musa3.1.0_muPP1.7.0",
	"git tag": "20241009_develop",
	"commit id": "f0e7e1c596943e2fe98e14ff096e3c2f2c877247",
	"commit date": "2024-08-23 10:42:21 +0800"
}
murand:
{
	"version": "1.0.0",
	"build archs": "21;22",
	"git branch": "kuae1.3.0_musa3.1.0_muRand1.0.0",
	"git tag": "20241009_develop",
	"commit id": "bc218b10bf4ab6454fe03816297478391ee6d503",
	"commit date": "2024-05-17 15:37:47 +0800"
}
musify:
{
	"version": "1.0.0",
	"git branch": "kuae1.3.0_musa3.1.0_musify1.0.0",
	"commit id": "d0720f523c8744a882484be081133054ebd9012f",
	"commit date": "2024-08-23 11:19:27 +0800"
}
musolver:
{
	"version": "1.0.0",
	"build archs": "21,22",
	"git branch": "kuae1.3.0_musa3.1.0_musolver1.0.0",
	"git tag": "No tag",
	"commit id": "65e4a393fa32b27068a993d8bf080645dd16f534",
	"commit date": "2024-08-29 10:20:23 +0800"
}
musparse:
{
	"version": "1.1.0",
	"build archs": "21,22",
	"git branch": "kuae1.3.0_musa3.1.0_musparse1.1.0",
	"git tag": "20240909_develop",
	"commit id": "73a84b13534251f7d0ea4d832c9f11839914c59a",
	"commit date": "2024-08-23 10:32:58 +0800"
}
musa_runtime:
{
	"version": "3.1.0",
	"git branch": "kuae1.3.0_musa3.1.0",
	"git tag": "No tag",
	"commit id": "6ad4f9378e0db4faa38187539e72cc90108ffe9e",
	"commit date": "2024-08-26 13:49:17 +0800"
}
driver_dependency:
{
	"git branch": "kuae1.3.0_musa3.1.0",
	"git tag": "No tag",
	"commit id": "db329f8fb8cef9c1c96b01a50688cd3923361973",
	"commit date": "2024-10-09 17:43:11 +0800"
}

### Проблема
После установки пакетов torch_musa версий 1.3, 1.2.1 и 1.1.0 не удается импортировать torch_musa.
#### Версия 1.1
```python
>>> import torch_musa
Traceback (most recent call last):
  File "/home/mthreads/.local/lib/python3.8/site-packages/torch_musa/__init__.py", line 34, in <module>
    import torch_musa._MUSAC
ImportError: /home/mthreads/.local/lib/python3.8/site-packages/torch_musa/lib/libmusa_python.so.1: undefined symbol: _ZN4musa3dnn6CumsumD1Ev

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mthreads/.local/lib/python3.8/site-packages/torch_musa/__init__.py", line 36, in <module>
    raise ImportError("Please try running Python from a different directory!") from err
ImportError: Please try running Python from a different directory!

Версия 1.2.1

>>> import torch_musa
Traceback (most recent call last):
  File "/home/mthreads/.local/lib/python3.8/site-packages/torch_musa/__init__.py", line 38, in <module>
    import torch_musa._MUSAC
ImportError: /home/mthreads/.local/lib/python3.8/site-packages/torch_musa/lib/libmusa_python.so.1: undefined symbol: _ZNK4musa3dnn6Cumsum3RunERNS0_6HandleERNS0_6TensorERKS4_RKSt8functionIFSt10unique_ptrIvS8_IFvPvEEEmEE

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mthreads/.local/lib/python3.8/site-packages/torch_musa/__init__.py", line 40, in <module>
    raise ImportError("Please try running Python from a different directory!") from err
ImportError: Please try running Python from a different directory!

Почему это происходит?

Комментарий (0)

GitLife Service Account Задача создана

Вход Перед тем как оставить комментарий

Статус
Ответственный
Контрольная точка
Pull Requests
Связанные запросы на слияние могут быть закрыты после их объединения
Ветки
Дата начала   -   Крайний срок
-
Закрепить/Открепить
Приоритет
Участники(1)
1
https://api.gitlife.ru/github-mirror/MooreThreads-torch_musa.git
git@api.gitlife.ru:github-mirror/MooreThreads-torch_musa.git
github-mirror
MooreThreads-torch_musa
MooreThreads-torch_musa