Halide icon indicating copy to clipboard operation
Halide copied to clipboard

Unknown intrinsic gather

Open mym2009 opened this issue 3 years ago • 2 comments

hi, I use halide 12.0.1 to compile test/correctness/gather.cpp. When generate target:arm-64-android-hvx_128-hvx_v65, generator throw an error: Unhandled exception: Internal Error at /home/ding/Downloads/Halide-12.0.1/src/CodeGen_LLVM.cpp:3171 triggered by user code at : Unknown intrinsic gather. But remove hvx_v65 from target, it works. I see vgather has been supported in version 12.0.1. Who can tell me the reason? Thanks.

mym2009 avatar May 20 '22 03:05 mym2009

The reason this passes for you when running without hvx_v65 is becasue the gather instruction isnt generated if no hvx_v65 is used.

pranavb-ca avatar May 20 '22 17:05 pranavb-ca

Yes, I know only v65+ hexagon dsp support vgather. I want to know the reason why target hvx_v65 cannot generate vgather code.

mym2009 avatar May 21 '22 02:05 mym2009