Move common code into a single function. This also allows requests like
--gres=gpu:tesla before you needed to give a count --gres=gpu:tesla:1 now both should work.
Please register or sign in to comment
--gres=gpu:tesla before you needed to give a count --gres=gpu:tesla:1 now both should work.