Closed mattsignorelli closed 6 months ago
The junk appears to enter on line 291 of mad_tpsa_ops.c
, where the c->hi
is set
The junk appears with different NV
on different machines, e.g. on my Ubuntu WSL (4GB memory) I get junk at NV=1
, on the mac student I get junk at NV=4
--- this could hopefully explain the mystery to some degree.
The bug appears in C with -fsanitize=address
, reported upstream...
Resolved
Nasty bug,with the latest GTPSA C code. Two completely equivalent codes (C vs calling C directly in Julia), yet I'm only seeing the bug in Julia
The Julia code:
The C code:
The Julia outputs:
The C code does not have this junk. Both use the exact same library compiled with the exact same compiler/settings.