R programming - submitting jobs on a multiple node linux cluster using PBS

前端 未结 3 1451
谎友^
谎友^ 2021-01-17 16:26

I am running R on a multiple node Linux cluster. I would like to run my analysis on R using scripts or batch mode without using parallel computing software such as MPI or sn

3条回答
  •  醉梦人生
    2021-01-17 17:09

    This is rather a PBS question; I usually make an R script (with Rscript path after #!) and make it gather a parameter (using commandArgs function) that controls which "part of the job" this current instance should make. Because I use multicore a lot I usually have to use only 3-4 nodes, so I just submit few jobs calling this R script with each of a possible control argument values.
    On the other hand your use of pbsdsh should do its job... Then the value of PBS_TASKNUM can be used as a control parameter.

提交回复
热议问题