hi Ilya,
exact reproducibility between simulations, even within the same environment, is not guaranteed for MCX, and accumulation operations on the GPU in general.
please see previous discussions on this topic
https://groups.google.com/g/mcx-users/c/DXJ9C70Sajo/m/TVmGaK0NAQAJ
https://groups.google.com/g/mcx-users/c/pFp8wstktw4/m/KXeRmkcyAwAJ
https://groups.google.com/g/mcx-users/c/E9VgPb4q62M/m/d6G_9Dr7AgAJ
if the simulations runs on different GPUs, or different OSes, the chance of getting nearly identical output is unlikely - by default, mcx determines a total number of threads based on the GPUs core count, and different GPUs will use different number of threads - even the seeds are the same, the results won't be the same; similarly, different GPU driver version also changes the behaviors of thread scheduler and causes the order of operations non-repeatible.
> For MATLAB and PMCX I see identical amount of detected photons, but different amount of E on the detectors (like 4.5773e-06 for MATLAB and 4.047e-06 for PMCX version).
what do you mean by different amount of "E"? detected photon weight? how did you compute this number?
Qianqian
--
You received this message because you are subscribed to the Google Groups "mcx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mcx-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mcx-users/d5e502db-23e7-415b-89eb-fe61bea6a870n%40googlegroups.com.
if you are trying to get the total detected "energy" at a given detector, you do not need to set outputtype to 'energy', because that flag only specifies the volumetric output (flux.data), and has no effect to detected photon data (detp).
I assume you meant mcxcwdref.m instead of mcxdref.m.
To view this discussion visit https://groups.google.com/d/msgid/mcx-users/14264c26-6f07-4e2c-b1c5-43a701ea7603n%40googlegroups.com.