wkloader.py 428 Bytes
Newer Older
Peter-Bernd Otte's avatar
Peter-Bernd Otte committed
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import print_function
print("Workload manager loader")

import sys
import os

if sys.version_info<(3,5,0):
  print("Python version < 3.5 detected. Load python 3.6 with:\nmodule load lang/Python/3.6.6-foss-2018b")
  exit(1)

Peter-Bernd Otte's avatar
Peter-Bernd Otte committed
14
import wkmgr
Peter-Bernd Otte's avatar
Peter-Bernd Otte committed
15 16

#ToDo:
Peter-Bernd Otte's avatar
Peter-Bernd Otte committed
17
# absorb all functions in wkmgr into a single function and call it here
Peter-Bernd Otte's avatar
Peter-Bernd Otte committed
18 19
# Call srun commando from here
# or call mpirun