Open monaxu1 opened 10 months ago
HI @monaxu1
Many thanks for reporting this. I will have a look at it over the weekend. From my previous understanding, the non-deterministic behaviour comes from the CUDA kernels - need to dig deeper into whereas there isnt any randomness apart from the order of execution of each threads.
In the meantime, could you try utilizing the CPU variants, they should not have this behaviour. Thanks!
Thank you. I've already tried the CPU variants, and they don't have any randomness.
Is your feature request related to a problem? Please describe. The cuda-version generalised_geodesic3d has shown non-deterministic behaviour. Given the same inputs, it returns different output (geodesic map) at different runs. This is not ideal for reproducibility. Please use the following code to reproduce the output I've observed.
Output - the output from generalised_geodesic3d is different at three runs:
Describe the solution you'd like I'm not sure where the randomness comes from, but It would be nice to seed everything in the cuda-version implementation.
Additional context FastGeodis==1.0.3