Bus errorとSegmentation faultに困ったら見るブログ

物理の研究者による日々の研究生活のメモ書きです ( python/emacs/html/Japascript/シェルスクリプト/TeX/Mac/C言語/Linux/git/tmux/R/ポケモンGO)

【HTCondor】使用するcpuを投入時の状態に応じて動的に変更する

3~8個のcpuのうち空いているものを使いたい時は以下のように書けばいいらしい

  executable = foo.exe
  # Only interested in slots with 3 to 8 CPUs if they
  # are static or dynamic.  If a slot is partitionable,
  # make sure it has at least 3 cpus.
  requirements = Cpus >= 3 && (PartitionableSlot || Cpus <= 8)
  # Request up to 8 cpus out of a partitionable slot.
  request_cpus = Cpus > 8 ? 8 : Cpus
  queue

(HTCondor v8.4+ では動くと書いてあるけど、テストはしてないっす)