Last active
May 9, 2019 10:19
-
-
Save pollenjp/13db217e8360228b003a1c11c34172c0 to your computer and use it in GitHub Desktop.
別々の対象に対して同じスクリプトを実行したいが各実行で空いているGPUをそれぞれ割り当てていき全てのGPUを使っているときは待ち(wait)に入り空きができたら空いた箇所のGPUを割り当てる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eux | |
# 別々の対象に対して同じスクリプトを実行したいが各実行で空いているGPUをそれぞれ割り当てていき全てのGPUを使っているときは | |
# 待ち(wait)に入り空きができたら空いた箇所のGPUを割り当てる | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pythonで
os.system()
を使ってshellコマンドを呼び出してそれをmulti-thread処理してやるのが良さそう