ROCm / hipify_torch

MIT License
18 stars 10 forks source link

Segmentation fault when hipifying code. #47

Open SingL3 opened 1 year ago

SingL3 commented 1 year ago

I am trying to hipify code from flash-attention, which has a dependency of cutlass. I adapt the setup.py and when hipifying cutlass, segmentation fault happens. I debugged and the main reason is that there are some .h files that include each other. For example, simd.h and simd_sm60.h. Because the preprocessor will try to process the files that it includes and itself was not yet hipified successfully. This results in infinite loop. I also report this in torch project Segmentation fault when hipifying code. And I think it is likely duplicated to #39 .

amathews-amd commented 1 year ago

Check out https://github.com/ROCmSoftwarePlatform/flash-attention