...
 
Commits (2)
......@@ -10,7 +10,7 @@ class Job:
self.name = model_dir.name
self.path = self.dir / f'{self.name}.qsub.sh'
self.gpu = True
self.requested_time = '23:59:59'
self.requested_time = '36:00:00'
self.tmem = '11.5G'
self.config_path = config_path
self.train = True
......@@ -22,7 +22,7 @@ class Job:
])
def write(self, old_cluster=False):
def write(self):
lines = []
a = lines.append
......@@ -42,18 +42,6 @@ class Job:
# Standard code
a('hostname')
a('date')
if old_cluster:
a(
(
'export CUDA_VISIBLE_DEVICES='
'$(( `nvidia-smi | grep " '
'/ .....MiB"|grep -n " .MiB '
'/ [0-9]....MiB"|cut -d : -f 1|head -n 1` - 1 ))'
)
)
a('')
a('if (( $CUDA_VISIBLE_DEVICES > -1 ))')
a('then')
a('')
a('source /share/apps/examples/python/python-3.6.3.source')
a('')
......@@ -87,8 +75,6 @@ class Job:
a(f' -c "{self.config_path}" \\')
a(f' -a {self.application}')
a('')
if old_cluster:
a('fi')
a('date')
a('')
......