Skip to content

Instantly share code, notes, and snippets.

@thorstenwagner
Last active February 23, 2021 08:12
Show Gist options
  • Save thorstenwagner/1ac76e654f89e941b92d9be49285b9be to your computer and use it in GitHub Desktop.
Save thorstenwagner/1ac76e654f89e941b92d9be49285b9be to your computer and use it in GitHub Desktop.
isac_changes
--- a/sphire/sphire/bin/sp_gui.py
+++ b/sphire/sphire/bin/sp_gui.py
@@ -3093,7 +3093,10 @@ class SXCmdTab(QWidget):
self.qsub_script_edit = QLineEdit()
if self.sxcmdwidget.sxcmd.is_submittable == True:
- if 'SPHIRE_SUBMISSION_SCRIPT_TEMPLATE' in os.environ:
+ if 'SPHIRE_SUBMISSION_SCRIPT_TEMPLATE_GPU' in os.environ and \
+ self.sxcmdwidget.sxcmd.name in ('sp_isac2_gpu', ):
+ submission_script_template = os.environ['SPHIRE_SUBMISSION_SCRIPT_TEMPLATE_GPU']
+ elif 'SPHIRE_SUBMISSION_SCRIPT_TEMPLATE' in os.environ:
submission_script_template = os.environ['SPHIRE_SUBMISSION_SCRIPT_TEMPLATE']
else:
submission_script_template = "msgui_qsub.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment