Skip to content

Instantly share code, notes, and snippets.

@BenWibking
Created April 10, 2022 10:00
Show Gist options
  • Save BenWibking/15645ff90819f2808fdb7a04b50b4a1e to your computer and use it in GitHub Desktop.
Save BenWibking/15645ff90819f2808fdb7a04b50b4a1e to your computer and use it in GitHub Desktop.
diff -Naur visit3_2_2.linux-x86_64/3.2.2/bin/internallauncher visit3_2_2/3.2.2/bin/internallauncher
--- visit3_2_2.linux-x86_64/3.2.2/bin/internallauncher 2022-01-27 10:09:08.000000000 +1100
+++ visit3_2_2/3.2.2/bin/internallauncher 2022-04-09 23:11:39.000000000 +1000
@@ -902,7 +902,8 @@
def __init__(self, launcher):
super(JobSubmitter_qsub, self).__init__(launcher)
self.tfilename = ""
- self.useppn = 1
+ self.useppn = 0
+ self.use_ncpus = 1
self.usettc = 0
def Executable(self):
@@ -912,7 +913,8 @@
def CreateFilename(self, root):
tdate = time.asctime().replace(" ", "-")
tuser = self.launcher.username()
- return os.path.join("/tmp", "%s.%s.%s" % (root, tuser, tdate))
+ #return os.path.join("/tmp", "%s.%s.%s" % (root, tuser, tdate))
+ return os.path.join("/tmp", "%s.%s" % (root, tuser))
def HandledHardwareArguments(self):
return 1
@@ -1047,6 +1049,8 @@
args = ["-l", "nodes=%s:ppn=%s:vis" % (nodes, ppn)]
elif self.useppn:
args = ["-l", "nodes=%s:ppn=%s" % (nodes, ppn)]
+ elif self.use_ncpus:
+ args = ["-l", "ncpus=%s" % procs]
else:
args = ["-l", "nodes=%s" % nodes]
return args
@@ -1084,7 +1088,7 @@
parcmd = parcmd + ["-q", self.parallel.partition]
if self.parallel.bank != None:
- parcmd = parcmd + ["-A", self.parallel.bank]
+ parcmd = parcmd + ["-P", self.parallel.bank]
parcmd = parcmd + [self.tfilename]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment