Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error #39

Open
ekazakos opened this issue Jan 28, 2024 · 2 comments
Open

Installation error #39

ekazakos opened this issue Jan 28, 2024 · 2 comments
Labels

Comments

@ekazakos
Copy link

Hi,

I follow the instructions and my installation fails. You can find my error log in: install_log.txt. Linker complains that there are multiple definitions of the same thing in different files. Upon checking flash-attention/csrc/flash_attn_rocm/src/, I found out that for many files there are two files with identical content and only different names, e.g. device_memory.hip and device_memory_hip.hip, which were created due to two object files being created (device_memory.o and device_memory_hip.o).

Any help would be appreciated.

@jayz0123
Copy link

jayz0123 commented Feb 4, 2024

@ekazakos, Can you try to delete both device_memory.hip and device_memory_hip.hip, and run python setup.py clean? Then run pip install . with the original device_memory.cpp.

@amasin2111
Copy link

Hi, facing a similar issue, after the patch the header files are not generated for the composable kernel, but the code hipifies the .cpp with hipified header requirements. Precisely speaking, the device_memory.hpp requirement is transformed into device_memory_hip.hpp, but due to the patch, we are skipping the creation of these header files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants