oar_python_2.py 236 B

12345678910111213
  1. #!/usr/bin/env python3
  2. #OAR -l /core=6,walltime=00:05:00
  3. CORE=6
  4. import joblib
  5. def print_hello(x):
  6. print("Hello", x)
  7. if __name__ == "__main__":
  8. joblib.Parallel(n_jobs=CORE)(joblib.delayed(print_hello)(i) for i in range(12))