loom icon indicating copy to clipboard operation
loom copied to clipboard

benchmark fail to run because of compiler optimizations

Open jserv opened this issue 6 years ago • 4 comments

On develop branch, the program benchmarks fails to run resulting from optimizations done by gcc with O3:

 -- no-op      limit 1000000 -- wall 1.033 clock 2.999 => 968493.0 / sec
Assertion failed: (false), function main, file benchmarks.c, line 169.

However, clang is known to work. gcc version 8.2.0 is tested here.

jserv avatar Nov 13 '18 02:11 jserv

What platform is this on (OS and CPU architecture)?

It doesn't have the right memory barriers in place to work right on ARM.

Also, I haven't really used this library in several years. I may get back to it eventually, but it's pretty low priority for me. The next time I work on it, I'll try to address this issue, though.

silentbicycle avatar Nov 13 '18 20:11 silentbicycle

It can be reproduced on both Linux/x86_64 18.04 and macOS/x86_64 Mojave.

jserv avatar Nov 14 '18 01:11 jserv

ping?

jserv avatar Jan 25 '19 11:01 jserv

pong

silentbicycle avatar Jan 25 '19 11:01 silentbicycle