posted
Recompile the whole lot of code with -g; run in gdb; set a hardware watchpoint... and the code is doing a neg-log-likelihood fit over half a million events to start with.
Posts: 10645 | Registered: Jul 2004
| IP: Logged |
posted
...and then discover that the standard script actually sets LD_LIBRARY_PATH to include the default libraries, so that the debug libraries I have spent a day getting all my other code to work nicely with are not in fact being linked in. Take steps to avoid this. Learn still more about slowness.
Posts: 10645 | Registered: Jul 2004
| IP: Logged |
posted
...make some progress: The variable I've been watching is set to NaN because of calls from the Deep Libraries. In particular, at some point the aptly-named array 'fU' is filled with NaNs and then passed around. Truly, whoever coded this bit had a deep understanding of what he was doing.
Posts: 10645 | Registered: Jul 2004
| IP: Logged |
posted
Ah, fun in the land of academic programming.
At least I'm assuming the people who wrote this were willing to use functions, unlike a certain fortran programmer I've worked with?
Posts: 15770 | Registered: Dec 2001
| IP: Logged |
quote:Originally posted by fugu13: Ah, fun in the land of academic programming.
At least I'm assuming the people who wrote this were willing to use functions, unlike a certain fortran programmer I've worked with?
They even organise, if that's the word, their functions into classes. Glorified namespaces, really, but it's a start. Anyway, it's not really their fault, TMinuit is a straight C++ port of an older Fortran library.
Posts: 10645 | Registered: Jul 2004
| IP: Logged |
posted
I still like the definition of "eternity" as being 4 blondes pulling up to a 4-way stop at the same time.
Posts: 1323 | Registered: Aug 2001
| IP: Logged |