To fix this, I had to change line 192 in the spearmint/schedulers/SGE.py, to follow the -j option with a 'y':
return 'qsub -S /bin/bash -e %s -o %s -j y -N %s' % (output_file, output_file, job_name)
I didn't submit a pull request because I'm not sure if this solution is backward compatible with older versions of SGE.
I get the following qsub error on SGE 8.1.6
qsub: invalid option argument "-j -N"
To fix this, I had to change line 192 in the spearmint/schedulers/SGE.py, to follow the -j option with a 'y': return 'qsub -S /bin/bash -e %s -o %s -j y -N %s' % (output_file, output_file, job_name)
I didn't submit a pull request because I'm not sure if this solution is backward compatible with older versions of SGE.