wkloader.py 426 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 14 15 16 17 18 19
#!/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)

import tpar

#ToDo:
# absorb all functions in tpar into a single function and call it here
# Call srun commando from here
# or call mpirun