getkeops / keops

KErnel OPerationS, on CPUs and GPUs, with autodiff and without memory overflows
https://www.kernel-operations.io
MIT License
1.02k stars 65 forks source link

Debug gpu_utils.py - unique temporary files for parallel execution #325

Closed kpoeppel closed 7 months ago

kpoeppel commented 11 months ago

When keops are used in parallel runs (e.g. when sweeping), the temporary file created in gpu_utils.py did have the same name leading to a race condition on the file system and FileNotFoundErrors. This PR fixes this by creating unique temporary files using the Python standard library. Fixes #324

joanglaunes commented 7 months ago

Hi @kpoeppel , Thank you very much for this update, and sorry for answering so long after you proposed it. It is now merged into main.