HIPS / Spearmint

Spearmint Bayesian optimization codebase
Other
1.55k stars 329 forks source link

qsub error because of -j option in SGE 8.1.6 #6

Closed peterjsadowski closed 6 years ago

peterjsadowski commented 10 years ago

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.