Hi all,
I am facing an issue that I don’t know how to solve. The essence of the code is that I use MPI to instantiate a Singularity container that then runs a piece of code that converts a .xml file into a binary file. The code looks like
mpirun --allow-run-as-root -n 1 singularity exec --bind /home/users/r/radhakrb/scratch/points_and_lines/:/usr/local/share/sdpb/ sdpb_2.5.1.sif pvm2sdp $binaryPrecision /usr/local/share/sdpb/$input /usr/local/share/sdpb/$outDir/$outFile
I guess there is a bunch of stuff in the second part of the line that might be difficult to read . But, the main parts of it is that I am mounting a specific directory in scratch inside the Singularity container so that it can then use files there to do its work.
Now unfortunately, running this piece of code gives me the following error
[cpu001.baobab:85985] PMIX ERROR: ERROR in file ../../../../../../src/mca/gds/ds12/gds_ds12_lock_pthread.c at line 168
--------------------------------------------------------------------------
A call to mkdir was unable to create the desired directory:
Directory: /scratch
Error: Read-only file system
Please check to ensure you have adequate permissions to perform
the desired operation.
I am a bit surprised since I have run other similar pieces of code using MPI and Singularity without any issues (they didn’t use mkdir but they did create and write to files on scratch). It would be great if anyone has a clue as to where I am going wrong