Laser element 2:: fix #349 - #373
Conversation
|
On my mac in Release mode I have 16/54 Test #16: TestLinearCompton .................. Passed 0.44 sec ** Runtime ** |
|
Can you quickly check if on the A100 we have the same problem? |
|
I started a run on Gwendolen, but it probably takes some time. In the meantime: I am pretty sure that it will also show the error, since lines like these cannot run on device when the default execution space/memory space is device. Here you would need an explicit |
|
yes agree will push a fix shortly |
…icle container, then use that host view in the finite-beam energy, angular, and joint histogram loops.
|
Please run again |
|
Quick question, wouldn't this be better situated in the regression tests? There the long runtime would not be an issue. |
|
In this test we are checking a MC generator. IMO this qualifies to be a unit_test. Will look into ways further reduce the the runtime. In a regression test I would need to run an OPALX input file and test the MC generator, this is not possible at the moment but maybe later when all the pieces are ready. |
|
cscs-ci run cscs-ci-gh200, cscs-ci-mi300, cscs-ci-openmp |



Closes #349
The TestLinearBreitWheelerSpectrum timeout was caused by running 22 CAIN-backed regression cases at full statistical resolution. Each case used 250000 Monte Carlo samples, and the joint spectra used full 80 x 80 histograms. The finite photon beam cases were especially expensive because they rebuild the sampling kernel for each event. In practice, the baseline run exceeded the 30 second unit-test budget and was killed after about 280 s.
The fix keeps all 22 regression cases enabled, but converts them to a unit-test-scale resolution. The per-case sample count is reduced to 10000, and the histogram resolution is reduced from 80 bins to 20 bins. For joint spectra,
this changes the grid from 80 x 80 to 20 x 20.
The CAIN reference CSV files remain stored at the original 80 bin resolution. The test now rebins those references down to the 20-bin unit-test resolution before comparison. This rebinning preserves integrated probability density, so the comparison remains a normalized shape regression rather than a pointwise high-resolution benchmark.
Doxygen comments were added to document the low-resolution validation strategy. The fixed TestLinearBreitWheelerSpectrum now passes through CTest in about 23 s, and the related TestLinearBreitWheeler kernel test also passes.
Missing CAIN reference CSV files are added