ROCm / xformers

Hackable and optimized Transformers building blocks, supporting a composable construction.
https://facebookresearch.github.io/xformers/
Other
22 stars 6 forks source link

Failed to install on a 7900xtx #17

Open Coldwinds5167 opened 5 months ago

Coldwinds5167 commented 5 months ago

🐛 Bug

Command

pip install -v -U --no-build-isolation --no-deps git+https://github.com/ROCm/xformers.git@develop#egg=xformers

To Reproduce

In file included from xformers/csrc/attention/hip_fmha/attention_ck_rand_uniform.hip:15: In file included from /home/ubuntu/.local/lib/python3.10/site-packages/torch/include/ATen/hip/HIPGraphsUtils.cuh:5: /home/ubuntu/.local/lib/python3.10/site-packages/torch/include/ATen/hip/HIPEvent.h:54:9: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result] 54 | hipEventDestroy(event_); | ^~~~~~~~~~~~~~~ ~~~~~~ 1 error generated when compiling for gfx1100.

Environment

Please copy and paste the output from the environment collection script from PyTorch (or fill out the checklist below manually).

You can run the script with:

# For security purposes, please check the contents of collect_env.py before running it.
python -m torch.utils.collect_env

PyTorch version: 2.1.2+rocm6.1.3 Is debug build: False CUDA used to build PyTorch: N/A ROCM used to build PyTorch: 6.1.40093-bd86f1708

OS: Ubuntu 22.04.3 LTS (x86_64) GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Clang version: Could not collect CMake version: Could not collect Libc version: glibc-2.35

Python version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (64-bit runtime) Python platform: Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.35 Is CUDA available: True CUDA runtime version: Could not collect CUDA_MODULE_LOADING set to: LAZY GPU models and configuration: AMD Radeon RX 7900 XTX

Additional context

hackey commented 4 months ago

Dear developers, please tell me if this library (xformers) supports the 7900 xtx video card? If not, is there any work being done to support it?

Kademo15 commented 2 months ago

Dear developers, please tell me if this library (xformers) supports the 7900 xtx video card? If not, is there any work being done to support it?

It isn't supported on rdna 3 see here