bh107 / bohrium

Automatic parallelization of Python/NumPy, C, and C++ codes on Linux and MacOSX
http://www.bh107.org
Apache License 2.0
220 stars 31 forks source link

Corrupted files in cache lead to crashes #608

Closed dionhaefner closed 5 years ago

dionhaefner commented 5 years ago

Occasionally, I get something like this:

[node441.cluster:mpi_rank_24][error_sighandler] Caught error: Aborted (signal 6)
Cannot load library: /groups/ocean/software/bohrium/gcc/01032019/var/bohrium/cache/3be48dd2ba8c365b_3d701d54ea6d549.so: file too short
terminate called after throwing an instance of 'std::runtime_error'
  what():  VE-OPENMP: Cannot load library

It would be nice if errors like these could be caught and trigger a recompilation instead.