Dao-AILab / flash-attention

Fast and memory-efficient exact attention
BSD 3-Clause "New" or "Revised" License
13.63k stars 1.25k forks source link

Not a directory: 'hipconfig' #659

Open ZhenHengDong opened 11 months ago

ZhenHengDong commented 11 months ago

File "/tmp/pip-req-build-qa8r3e9n/setup.py", line 8, in from torch.utils.cpp_extension import BuildExtension, CppExtension, CUDAExtension, CUDA_HOME File "/home/zhenhengdong/anaconda3/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 19, in from .hipify import hipify_python File "/home/zhenhengdong/anaconda3/lib/python3.9/site-packages/torch/utils/hipify/hipify_python.py", line 34, in from .cuda_to_hip_mappings import CUDA_TO_HIP_MAPPINGS File "/home/zhenhengdong/anaconda3/lib/python3.9/site-packages/torch/utils/hipify/cuda_to_hip_mappings.py", line 34, in rocm_path = subprocess.check_output(["hipconfig", "--rocmpath"]).decode("utf-8") File "/home/zhenhengdong/anaconda3/lib/python3.9/subprocess.py", line 424, in check_output return run(popenargs, stdout=PIPE, timeout=timeout, check=True, File "/home/zhenhengdong/anaconda3/lib/python3.9/subprocess.py", line 505, in run with Popen(popenargs, **kwargs) as process: File "/home/zhenhengdong/anaconda3/lib/python3.9/subprocess.py", line 951, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/home/zhenhengdong/anaconda3/lib/python3.9/subprocess.py", line 1821, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) NotADirectoryError: [Errno 20] Not a directory: 'hipconfig'

tridao commented 11 months ago

It's not meant to work with HIP (e.g. AMD GPUs).

wuzhihui3723 commented 8 months ago

解决了吗