epicflow
epicflow copied to clipboard
How to complie the Epicflow code using cmake
I want to complie the Epicflow code by myself. (macOS 10.12) but I get this error (The error is same using the original Makefile):
image.c:214:36: error: cannot convert between vector values of different size ('float' and 'v4sf' (aka '__v4sf'))
how to solve this problem?
Thanks very much!
@yuanxy92
You can make the broadcast explicit. That is, change
*dstp = (coeff[0]+coeff[1])*(*srcp) + coeff[2]*(*srcp_p1);
to
float coeff01 = coeff[0]+coeff[1];
v4sf c01 = {coeff01, coeff01, coeff01, coeff01};
v4sf c2 = {coeff[2], coeff[2], coeff[2], coeff[2]};
*dstp = c01*(*srcp) + c2*(*srcp_p1);
You have to perform similar changes in more than 10 places.
By the way, you can ask the authors for help https://thoth.inrialpes.fr/src/epicflow/, which may be much quicker.