To check if NEON is available, /proc/cpuinfo is read into a buffer of size 1024*4. On a CI server, has 8 cores with lots of options, the total length of /proc/cpuinfo is over 7500 bytes, so Ne10 fails to init. The simple fix was to increase the buffer size.
A more permanent fix, assuming each core has the same options, could be to check that a whole cores worth of options has been read (e.g. I think a new line is used to separate the cores) before checking the flags.
Additionally, if there is a "problem" reading in /proc/cpuinfo, then falling back to C mode could be an option, possible provided to Ne10_init()
To check if NEON is available, /proc/cpuinfo is read into a buffer of size 1024*4. On a CI server, has 8 cores with lots of options, the total length of /proc/cpuinfo is over 7500 bytes, so Ne10 fails to init. The simple fix was to increase the buffer size.
A more permanent fix, assuming each core has the same options, could be to check that a whole cores worth of options has been read (e.g. I think a new line is used to separate the cores) before checking the flags.
Additionally, if there is a "problem" reading in /proc/cpuinfo, then falling back to C mode could be an option, possible provided to Ne10_init()