Batch file to start multi-core program RRS feed

  • Question

  • Dear experts,

    I am able to write a bat file in the headnode to start a multi-core program within an Windows HPC (with Windows Server 2008 R2) using mpiexec. Before the mpiexec command, however, I need to set the working directory for all nodes using the bat file inside the headnode. ( It's required that I can't set the working directory within my multi-core program).

    If I use a bare cd command, it's able to change the directory of the headnode computer, but not the node computer. What will be the command line for changing the directory of all the other nodes computer?


    Regards, Simon

    Monday, August 22, 2016 10:25 AM

All replies

  • Hi Simon,

      What's your command look like when you submit your job? If you check the help of "job submit" or "job add" it has "/workdir" for you to provide as the task working directory.

    Qiufang Shi

    Tuesday, August 23, 2016 1:40 AM