【问题标题】:Running multiple parpool jobs on a cluster在集群上运行多个 parpool 作业
【发布时间】:2016-04-23 11:08:13
【问题描述】:

我正在尝试在集群上运行多个 MATLAB 作业。 由于 MATLAB 将每个 parpool 作业的状态和日志保存在 ~/.matlab/... 中,当我在集群上运行多个作业(每个作业使用自己的 parpool)时,MATLAB 尽管我关闭了每个打开的 parpool当我使用一个时,它给了我与“找到 5 个预先存在的并行作业......”相关的错误

有没有办法为每个 MATLAB 实例更改 MATLAB 的首选项文件夹,以免出现这种冲突?

【问题讨论】:

    标签: matlab parallel-processing cluster-computing slurm


    【解决方案1】:

    在启动并行池之前,您需要使用每个作业的唯一路径覆盖JobStorageLocation 属性,例如

    pc = parcluster('local'); % or whatever cluster you're running your jobs on
    pc.JobStorageLocation = 'C:\my\unique\job\storage\location';
    parpool(pc);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-30
      • 1970-01-01
      • 2015-04-25
      • 1970-01-01
      相关资源
      最近更新 更多