finally I got it:
passing the mca key/value `"plm_slurm_args"/"--chdir /local/folder"' does the trick.
As a matter of fact, my code pass the MPI_Info key/value `"wdir"/"/local/folder"'
to MPI_Comm_spawn as well: the working directories on the nodes of the spawned programs
are `nodes:/local/folder' as expected, but the working directory of the oreted_s
is the working directory of the parent program. My guess is that the MPI_Info key/vale
may also be passed to `srun'.
Jerome BENOIT wrote:
> Hello Again,
> Jerome BENOIT wrote:
>> Hello List,
>> I have just noticed that, when MPI_Comm_spawn is used to launch
>> programs around,
>> oreted working directory on the nodes is the working directory of the
>> spawnning program:
>> can we ask to oreted to use an another directory ?
> Changing the working the directory via chdir before spawning with
> changes nothing: the oreted working directory on the nodes seems to be
> by something else. As run OMPI on top of SLURM, I guess this is related
> to SLURM.
>> Thanks in advance,
>> Jerome _______________________________________________
>> users mailing list