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

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

【HTCondor v24】複数のqueueを書く機能はv24で廃止され、queueを1つの行にまとめる必要がある

複数のqueueを書く機能はv24で廃止される

HTCondorでジョブを投げていたときに、次のようなワーニングが出てきた

Warning: Use of multiple queue statements in a single submit file is deprecated.
This functionality will be removed in the V24 feature series. To see
how multiple queue statements can be converted into one visit:
https://htcondor.readthedocs.io/en/latest/auto-redirect.html?category=example&tag=convert-multi-queue-statements

内容は1つのsubmissionファイルに複数のqueueを書くんじゃないよ、その機能はv24で無くなるよというもの
書かれているリンクはエラーで開けず

おそらくこのリンクが正しい

htcondor.readthedocs.io

コマンドのメモ

Arguments = -c $(AAA) -d $(BBB)

queue AAA, BBB from (
50, first.txt
50, second.txt
25, third.txt
)

みたいに書くと、AAAとBBBという変数に値が代入されて、その分だけqueueが実行される感じになる
逆に新しいsubmission ファイルでは、queueは1度だけ書く必要があるんだと思う


シェルスクリプトでsubmissionファイルを作成するときは少し気を付ける必要がある

echo 'Arguments = -d $(day)' >> $submit
echo "queue day from (" >> $submit

for i in `seq 0 31`
do
echo "$i" >> $submit
done

echo ")" >> $submit

condor_submit $submit

みたいな感じ

大事なのは Argumentsはシングルコーテーションで囲う、じゃないと$(day)が展開されてしまうので・・・

参考リンク

chtc.cs.wisc.edu