如何在单个节点中启动作业阵列中的每个作业?

时间:2018-09-12 15:33:00

标签: slurm

我想以长度20的方式运行作业数组,以使所有作业都在单个节点中运行,并且每个作业都使用该节点的一个核心。我正在尝试使用此批次:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <link href="style.css" rel="stylesheet">
    <title>Title</title>
</head>

<body>
    <div class="container">
        <div class="image-wrap">
        <div class="image">
            <div class="img" id="pic1"><img src="img/main_v3-38.png" alt=""></div>
            <div class="img" id="pic2" style='display:none'><img src="http://images.math.cnrs.fr/IMG/png/section8-image.png" alt=""></div>
            <div class="img" id="pic3" style='display:none'><img src="http://www.simpleimageresizer.com/static/images/simple-image-resizer-128x128.png" alt=""></div>
        </div>
        </div>
        <div class="radio">
<form class="radiobuttons">
  <p id="desc1"><input type="radio" name="item1" id="item1" value="1" data-picid="pic2" data-textid="text1">Text 1</p>
  <p id="desc2"><input type="radio" name="item1" id="item2" value="1" data-picid="pic2" data-textid="text2">Text 2</p>
  <p id="desc3"><input type="radio" name="item1" id="item3" value="1" data-picid="pic3" data-textid="text3">Text 3</p>

</form>
        </div>
    </div>
    <div class="text" id="text1" style='display:none'>Lorem Ipsum Text1</div>
    <div class="text" id="text2" style='display:none'>Lorem Ipsum Text2</div>
    <div class="text" id="text3" style='display:none'>Lorem Ipsum Text3</div>
<div class="image-wrap">
        <div class="image">
            <div class="img" id="pic1"><img src="img/main_v3-38.png" alt=""></div>
            <div class="img" id="pic2" style='display:none'><img src="img/main_v3-41.png" alt=""></div>
            <div class="img" id="pic3" style='display:none'><img src="img/main_v3-44.png" alt=""></div>
        </div>
        </div>

</body>

</html>

$(document).ready(function() {
   $('input[type="radio"]').change(function() {
   $('.text, .img').hide();
   var $pic = $('#'+$(this).data('picid'));
   var $text = $('#'+$(this).data('textid'));   
    if ($(this).prop('checked')) {
     $pic.show();
     $text.show();
   }else{  
     $pic.hide();
     $text.hide();
   };
});
});

此外,我希望作业阵列中的每个作业都只有1GB的RAM。可以吗?

0 个答案:

没有答案