Loopy is not generating valid C code with the latest numpy release candidate for version 2.0. Using the latest loopy main branch and a virtual environment with pip install -U numpy==2.0.0rc1 installed the following code does the wrong thing:
#include <stdint.h>
void loopy_kernel(double *__restrict__ x)
{
double t[5] = { np.float64(0.0), np.float64(1.0), np.float64(2.0), np.float64(3.0), np.float64(4.0)
};
for (int32_t i = 0; i <= 4; ++i)
x[i] = t[i];
}
and naturally the np.float64(XXX) cannot compile.
I was able to fix this case by applying these changes: one, two. But I don't know if this is the right thing to do and I expect there will be similar issues elsewhere.
Loopy is not generating valid C code with the latest numpy release candidate for version 2.0. Using the latest loopy
main
branch and a virtual environment withpip install -U numpy==2.0.0rc1
installed the following code does the wrong thing:This code prints out
and naturally the
np.float64(XXX)
cannot compile.I was able to fix this case by applying these changes: one, two. But I don't know if this is the right thing to do and I expect there will be similar issues elsewhere.