Commit dcd344ab authored by Ashwin Vishnu's avatar Ashwin Vishnu
Browse files

Update Kebnekaise modules and SLURM dependency handling

--HG--
branch : dev
parent d2c95db9c37d
......@@ -146,7 +146,8 @@ class ClusterSlurm(object):
if resume:
dependencies = input('Enter jobid dependencies :').split()
launching_command += ' --dependency=afternotok:' + ':'.join(dependencies)
dependencies = ':'.join(dependencies)
launching_command += ' --dependency=afterany:' + dependencies
else:
dependencies = None
......@@ -260,7 +261,7 @@ class ClusterSlurm(object):
txt += '\n'.join(self.commands_setting_env) + '\n\n'
if resume_script:
jobid = dependencies[0]
jobid = dependencies.split(':')[0]
main_logfile = 'SLURM.{}.{}.stdout'.format(name_run, jobid)
txt += "PATH_RUN=$(sed -n '/path_run/{n;p;q}' " + "{})\n".format(main_logfile)
......
......@@ -96,7 +96,8 @@ class Kebnekaise(ClusterSlurm):
self.commands_setting_env = [
'source /etc/profile',
'module load GCC/5.4.0-2.26 OpenMPI/1.10.3',
'module load foss/2016b',
'module rm FFTW/3.3.5',
'module load HDF5/1.8.17',
'module load Python/2.7.12',
'module load PIL/1.1.7-Python-2.7.12',
......@@ -114,3 +115,7 @@ elif _host == 'abisko':
ClusterSNIC = Abisko
elif _host == 'kebnekaise':
ClusterSNIC = Kebnekaise
if __name__ == '__main__':
cluster = ClusterSNIC()
print('\n'.join(cluster.commands_setting_env))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment