Closed audita-nimas closed 10 months ago
Hi @audita-nimas
File locking is an operating system function to stop two programs using the same file at once. You can check if it is supported on your system with:
import fcntl
f = open("test_file_name_lock.txt", "w")
fcntl.lockf(f, fcntl.LOCK_EX|fcntl.LOCK_NB)
f.close()
if it produces an error message then your system does not support locking, and you can just set lock=F
in the [output]
section like it says to fix the issue.
If that's not the problem, and you're sure that options 1 and 2 don't apply, then you may have a problem with your MPI setup. You can check with:
XXX python -c "from mpi4py.MPI import COMM_WORLD as c;print(c.rank, c.size)
replacing XXX
with whatever command you normally use to launch MPI jobs, e.g. mpirun -n <number of tasks>
or srun -n <number of tasks>
depending on your system.
Closing this now but please re-open if needed.
Hi Joe,
I run cosmosis in the supercomputer and get the error like this:
I already used MPI and run well in other supercomputer and I tried in new supercomputer but does not work. and also I did not running the cosmosis use the same filename. So I tried set lock=F, it works, so what is lock=F? Can I get the output from that?