minnervva / torchdetscan

This is a tool for finding non-deterministic functions in your pytorch code.
https://github.com/minnervva/torchdetscan
MIT License
1 stars 0 forks source link

Turn on TF_DETERMINISM_OPS #38

Open mtaillefumier opened 5 months ago

mtaillefumier commented 5 months ago

Use the variable TF_DETERMINISM_OPS to turn on deterministic paths in tensorflow. They are three other variables impacting the parallelism OMP_NUM_THREADS, TF_INTER_OP_PARALLELISM_THREADS, and TF_INTRA_OP_PARALLELISM_THREADS that also need to be checked.

So far we want to check with this configuration, TF on GPU, deepmd cpu only (we can make thing more complicated afterwards with a full GPU stack)

Again we want to check the variability in the atomic forces between the different runs not the comparison between predicted and DFT data. This can be postponed for later.

mtaillefumier commented 5 months ago

So far for the AlCl3 system (TF GPU DeepMD CPU only)

We can run DeepMD cpu deterministically