SyneRBI / SIRF

Main repository for the CCP SynerBI software
http://www.ccpsynerbi.ac.uk
Other
58 stars 29 forks source link

same code gives different results #585

Open rijobro opened 4 years ago

rijobro commented 4 years ago

Generating PET MCIR data with generate_MCIR_data.py, but noticed that one on machine the PET sinograms contain only zeros.

Command:

$SIRF_PYTHON_EXECUTABLE ~/Documents/Code/SIRF-SuperBuild/Build/sources/SIRF/examples/Python/PETMR/generate_MCIR_data.py -p .
$SIRF_PYTHON_EXECUTABLE -c "import sirf.STIR as s; print(s.AcquisitionData('raw_FDG_ms0.hs').as_array().max())"

Ouptut on my Mac: 356.0, output on linux: 0.0.

What could be causing this difference? Both on master branches of SIRF and STIR.

rijobro commented 4 years ago

Could it be OpenMP?

KrisThielemans commented 4 years ago

no clue. I guess one more exercise if cutting out most (including add_noise) and see what happens. And nothing stops you from building on Linux without OPENMP :-)

worrying

rijobro commented 4 years ago

Time for yet another debugging session :suspect: